home *** CD-ROM | disk | FTP | other *** search
/ Hyper Stacks 1994 May / Hyper Stacks (Pacific HiTech)(1994)[Mac].iso / Science / Biology / LabHelper3.1.sea Folder / LabHelper 3.1 / LabHelper
MacBinary  |  1993-09-23  |  420.1 KB  |  [STAK/WILD]

open in: MacOS 8.1     |     Win98     |     DOS

browse contents    |     view JSON data     |     view as text


This file was processed as: MacBinary (archive/macBinary).

ConfidenceProgramDetectionMatch TypeSupport
100% dexvert HyperCard Stack (archive/hypercard) idMeta Supported
10% dexvert MacBinary (archive/macBinary) fallback Supported
100% file MacBinary II, inited, Tue May 25 08:35:40 1993, modified Thu Sep 23 13:15:30 1993, creator HyperCard, type HyperCard stack, 40960 bytes "LabHelper" , at 0xa080 389038 bytes resource default (weak)
99% file data default
74% TrID Mac HyperCard stack (MacBinary) default
25% TrID MacBinary 2 default (weak)
100% lsar MacBinary default


id metadata
keyvalue
macFileType[STAK]
macFileCreator[WILD]



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 09 4c 61 62 48 65 6c | 70 65 72 00 00 00 00 00 |..LabHel|per.....|
|00000010| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000040| 00 53 54 41 4b 57 49 4c | 44 01 00 00 00 00 00 00 |.STAKWIL|D.......|
|00000050| 00 00 00 00 00 a0 00 00 | 05 ef ae a8 27 c3 1c a8 |........|....'...|
|00000060| c7 8a 32 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |..2.....|........|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 81 81 0d 82 00 00 |........|........|
|00000080| 00 00 66 00 53 54 41 4b | ff ff ff ff 00 00 00 00 |..f.STAK|........|
|00000090| 00 00 00 0a 00 00 a0 00 | 00 00 66 00 00 00 00 00 |........|..f.....|
|000000a0| 00 00 00 00 00 00 00 01 | 00 00 0a ae 00 00 00 01 |........|........|
|000000b0| 00 00 0b f7 00 00 11 94 | 00 00 00 02 00 00 17 e0 |........|........|
|000000c0| 00 00 0f 37 00 00 00 00 | 00 03 00 00 dc 00 00 00 |...7....|........|
|000000d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000000e0| 02 10 80 00 02 10 80 00 | 02 10 80 00 02 10 80 00 |........|........|
|000000f0| 11 e8 60 3d 00 00 00 00 | 00 4a 00 40 01 a0 02 40 |..`=....|.J.@...@|
|00000100| 00 00 00 00 01 e0 02 80 | 00 00 00 00 00 00 00 00 |........|........|
|00000110| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000120| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000130| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000140| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000150| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000160| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000170| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000180| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000190| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000200| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000210| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000220| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000230| 00 00 0d c4 00 00 0c b1 | 01 56 02 00 00 00 00 00 |........|.V......|
|00000240| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000250| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000260| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000270| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000280| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000290| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000002a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000002b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000002c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000002d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000002e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000002f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000300| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000310| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000320| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000330| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000340| 00 00 00 00 00 00 00 00 | 80 00 00 00 08 00 00 00 |........|........|
|00000350| 88 00 22 00 88 00 22 00 | 88 88 22 22 88 88 22 22 |.."...".|..""..""|
|00000360| 88 aa 22 aa 88 aa 22 aa | cc aa 33 aa cc aa 33 aa |.."...".|..3...3.|
|00000370| ee aa bb aa ee aa bb aa | ee bb bb ee ee bb bb ee |........|........|
|00000380| ff bb ff ee ff bb ff ee | ff bb ff ff ff bb ff ff |........|........|
|00000390| 80 10 02 20 01 08 40 04 | ff ff ff ff ff ff ff ff |... ..@.|........|
|000003a0| 88 22 88 22 88 22 88 22 | 11 22 44 88 11 22 44 88 |."."."."|."D.."D.|
|000003b0| c4 80 0c 68 43 02 30 26 | b1 30 03 1b d8 c0 0c 8d |...hC.0&|.0......|
|000003c0| aa 00 aa 00 aa 00 aa 00 | 88 22 55 22 88 22 55 22 |........|."U"."U"|
|000003d0| 88 55 22 55 88 55 22 55 | 77 dd 77 dd 77 dd 77 dd |.U"U.U"U|w.w.w.w.|
|000003e0| 80 00 00 00 00 00 00 00 | aa 55 aa 55 aa 55 aa 55 |........|.U.U.U.U|
|000003f0| 03 84 48 30 0c 02 01 01 | 82 44 39 44 82 01 01 01 |..H0....|.D9D....|
|00000400| 88 14 22 41 88 41 22 14 | 80 80 41 3e 08 08 14 e3 |.."A.A".|..A>....|
|00000410| 22 04 8c 74 22 17 98 10 | be 80 88 08 eb 08 88 80 |"..t"...|........|
|00000420| 25 c8 32 89 64 24 4c 92 | a2 9c 41 be 2a c9 14 eb |%.2.d$L.|..A.*...|
|00000430| 40 a0 00 00 04 0a 00 00 | 80 40 20 00 02 04 08 00 |@.......|.@ .....|
|00000440| aa 00 80 00 88 00 80 00 | ff 80 80 80 80 80 80 80 |........|........|
|00000450| 08 1c 22 c1 80 01 02 04 | ff 80 80 80 ff 08 08 08 |..".....|........|
|00000460| f8 74 22 47 8f 17 22 71 | bf 00 bf bf b0 b0 b0 b0 |.t"G.."q|........|
|00000470| ff 7f be 5d a2 41 80 00 | fa f5 fa f5 a0 50 a0 50 |...].A..|.....P.P|
|00000480| 00 00 70 80 00 00 10 80 | 00 00 98 80 00 00 07 60 |..p.....|.......`|
|00000490| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000004a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000004b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000004c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000004d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000004e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000004f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000500| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000510| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000520| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000530| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000540| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000550| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000560| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000570| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000580| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000590| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000005a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000005b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000005c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000005d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000005e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000005f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000600| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000610| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000620| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000630| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000640| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000650| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000660| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000670| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000680| 6f 6e 20 6f 70 65 6e 53 | 74 61 63 6b 0d 6c 6f 63 |on openS|tack.loc|
|00000690| 6b 20 73 63 72 65 65 6e | 0d 69 66 20 74 68 65 20 |k screen|.if the |
|000006a0| 76 65 72 73 69 6f 6e 20 | 3c 20 32 2e 30 20 74 68 |version |< 2.0 th|
|000006b0| 65 6e 0d 61 6e 73 77 65 | 72 20 22 54 68 69 73 20 |en.answe|r "This |
|000006c0| 75 74 69 6c 69 74 79 20 | 72 65 71 75 69 72 65 73 |utility |requires|
|000006d0| 20 48 79 70 65 72 43 61 | 72 64 20 32 2e 30 20 6f | HyperCa|rd 2.0 o|
|000006e0| 72 20 6c 61 74 65 72 2e | 22 0d 67 6f 20 68 6f 6d |r later.|".go hom|
|000006f0| 65 0d 65 6e 64 20 69 66 | 0d 63 68 65 63 6b 46 6f |e.end if|.checkFo|
|00000700| 72 4d 69 73 73 69 6e 67 | 46 6f 6e 74 73 0d 69 66 |rMissing|Fonts.if|
|00000710| 20 74 68 65 20 73 68 6f | 72 74 20 6e 61 6d 65 20 | the sho|rt name |
|00000720| 6f 66 20 74 68 69 73 20 | 73 74 61 63 6b 20 69 73 |of this |stack is|
|00000730| 20 6e 6f 74 20 22 4c 61 | 62 48 65 6c 70 65 72 22 | not "La|bHelper"|
|00000740| 20 74 68 65 6e 0d 69 66 | 20 6c 69 63 65 6e 73 65 | then.if| license|
|00000750| 43 68 65 63 6b 28 29 3d | 22 46 61 69 6c 22 20 74 |Check()=|"Fail" t|
|00000760| 68 65 6e 0d 61 6e 73 77 | 65 72 20 22 54 68 69 73 |hen.answ|er "This|
|00000770| 20 69 73 20 61 6e 20 75 | 6e 72 65 67 69 73 74 65 | is an u|nregiste|
|00000780| 72 65 64 20 63 6f 70 79 | 20 6f 66 20 4c 61 62 48 |red copy| of LabH|
|00000790| 65 6c 70 65 72 21 22 20 | 77 69 74 68 20 22 4c 61 |elper!" |with "La|
|000007a0| 74 65 72 22 20 6f 72 20 | 22 52 65 67 69 73 74 65 |ter" or |"Registe|
|000007b0| 72 20 4e 6f 77 22 0d 69 | 66 20 69 74 20 69 73 20 |r Now".i|f it is |
|000007c0| 22 52 65 67 69 73 74 65 | 72 20 4e 6f 77 22 20 74 |"Registe|r Now" t|
|000007d0| 68 65 6e 0d 67 6f 20 74 | 6f 20 73 74 61 63 6b 20 |hen.go t|o stack |
|000007e0| 22 4c 61 62 48 65 6c 70 | 65 72 22 0d 73 65 6e 64 |"LabHelp|er".send|
|000007f0| 20 52 65 67 69 73 74 65 | 72 20 74 6f 20 62 67 20 | Registe|r to bg |
|00000800| 22 4c 61 62 48 65 6c 70 | 65 72 22 0d 65 6c 73 65 |"LabHelp|er".else|
|00000810| 0d 61 6e 73 77 65 72 20 | 22 50 6c 65 61 73 65 20 |.answer |"Please |
|00000820| 72 65 67 69 73 74 65 72 | 20 74 68 69 73 20 63 6f |register| this co|
|00000830| 70 79 20 6f 66 20 4c 61 | 62 48 65 6c 70 65 72 20 |py of La|bHelper |
|00000840| 73 6f 6f 6e 21 22 20 77 | 69 74 68 20 22 4f 4b 22 |soon!" w|ith "OK"|
|00000850| 20 6f 72 20 22 50 72 69 | 6e 74 20 46 6f 72 6d 22 | or "Pri|nt Form"|
|00000860| 0d 69 66 20 69 74 20 69 | 73 20 22 50 72 69 6e 74 |.if it i|s "Print|
|00000870| 20 46 6f 72 6d 22 20 74 | 68 65 6e 0d 67 6f 20 74 | Form" t|hen.go t|
|00000880| 6f 20 73 74 61 63 6b 20 | 22 4c 61 62 48 65 6c 70 |o stack |"LabHelp|
|00000890| 65 72 22 0d 70 72 6f 6d | 70 74 6f 69 64 20 22 50 |er".prom|ptoid "P|
|000008a0| 72 69 6e 67 20 52 65 67 | 69 73 74 72 61 74 69 6f |ring Reg|istratio|
|000008b0| 6e 20 46 6f 72 6d 2e 2e | 2e 22 0d 70 72 69 6e 74 |n Form..|.".print|
|000008c0| 20 66 6c 64 20 22 52 65 | 67 69 73 74 72 61 74 69 | fld "Re|gistrati|
|000008d0| 6f 6e 20 46 6f 72 6d 22 | 0d 63 6c 6f 73 65 20 77 |on Form"|.close w|
|000008e0| 69 6e 64 6f 77 20 70 72 | 6f 6d 70 74 6f 69 64 0d |indow pr|omptoid.|
|000008f0| 65 6e 64 20 69 66 0d 65 | 6e 64 20 69 66 0d 65 6e |end if.e|nd if.en|
|00000900| 64 20 69 66 0d 65 6c 73 | 65 20 49 66 20 74 68 65 |d if.els|e If the|
|00000910| 20 73 68 6f 72 74 20 6e | 61 6d 65 20 6f 66 20 74 | short n|ame of t|
|00000920| 68 69 73 20 73 74 61 63 | 6b 20 69 73 20 22 4c 61 |his stac|k is "La|
|00000930| 62 48 65 6c 70 65 72 22 | 20 74 68 65 6e 0d 63 6f |bHelper"| then.co|
|00000940| 6c 6f 72 69 7a 65 48 43 | 20 22 6e 65 77 22 2c 22 |lorizeHC| "new","|
|00000950| 43 72 65 64 69 74 73 22 | 2c 22 30 2c 30 22 0d 63 |Credits"|,"0,0".c|
|00000960| 6f 6c 6f 72 69 7a 65 48 | 43 20 22 63 6f 6c 6f 72 |olorizeH|C "color|
|00000970| 46 69 6c 6c 22 2c 72 65 | 63 74 20 6f 66 20 66 6c |Fill",re|ct of fl|
|00000980| 64 20 22 61 62 6f 75 74 | 2e 2e 2e 22 2c 22 35 33 |d "about|...","53|
|00000990| 32 34 37 2c 35 33 32 34 | 37 2c 35 33 32 34 37 22 |247,5324|7,53247"|
|000009a0| 0d 65 6e 64 20 69 66 0d | 63 72 65 61 74 65 4d 65 |.end if.|createMe|
|000009b0| 6e 75 0d 6f 70 65 6e 42 | 61 63 6b 67 72 6f 75 6e |nu.openB|ackgroun|
|000009c0| 64 0d 73 65 74 20 75 73 | 65 72 6c 65 76 65 6c 20 |d.set us|erlevel |
|000009d0| 74 6f 20 32 0d 75 6e 6c | 6f 63 6b 20 73 63 72 65 |to 2.unl|ock scre|
|000009e0| 65 6e 0d 65 6e 64 20 6f | 70 65 6e 53 74 61 63 6b |en.end o|penStack|
|000009f0| 0d 0d 6f 6e 20 6f 70 65 | 6e 42 61 63 6b 67 72 6f |..on ope|nBackgro|
|00000a00| 75 6e 64 0d 67 6c 6f 62 | 61 6c 20 63 75 72 72 65 |und.glob|al curre|
|00000a10| 6e 74 42 6b 67 0d 68 69 | 64 65 20 6d 73 67 0d 69 |ntBkg.hi|de msg.i|
|00000a20| 66 20 74 68 65 72 65 20 | 69 73 20 61 20 66 6c 64 |f there |is a fld|
|00000a30| 20 22 41 62 6f 75 74 2e | 2e 2e 22 20 74 68 65 6e | "About.|.." then|
|00000a40| 0d 70 75 74 20 74 68 65 | 20 73 68 6f 72 74 20 6e |.put the| short n|
|00000a50| 61 6d 65 20 6f 66 20 74 | 68 69 73 20 62 6b 67 6e |ame of t|his bkgn|
|00000a60| 64 20 69 6e 74 6f 20 63 | 75 72 72 65 6e 74 42 6b |d into c|urrentBk|
|00000a70| 67 0d 73 70 65 63 69 61 | 6c 6d 65 6e 75 0d 65 6e |g.specia|lmenu.en|
|00000a80| 64 20 69 66 0d 70 61 73 | 73 20 6f 70 65 6e 42 61 |d if.pas|s openBa|
|00000a90| 63 6b 67 72 6f 75 6e 64 | 0d 65 6e 64 20 6f 70 65 |ckground|.end ope|
|00000aa0| 6e 42 61 63 6b 67 72 6f | 75 6e 64 0d 0d 6f 6e 20 |nBackgro|und..on |
|00000ab0| 73 70 65 63 69 61 6c 4d | 65 6e 75 0d 67 6c 6f 62 |specialM|enu.glob|
|00000ac0| 61 6c 20 63 75 72 72 65 | 6e 74 42 6b 67 0d 69 66 |al curre|ntBkg.if|
|00000ad0| 20 74 68 65 72 65 20 69 | 73 20 61 20 6d 65 6e 75 | there i|s a menu|
|00000ae0| 20 22 55 74 69 6c 22 20 | 74 68 65 6e 20 64 65 6c | "Util" |then del|
|00000af0| 65 74 65 20 6d 65 6e 75 | 20 22 55 74 69 6c 22 0d |ete menu| "Util".|
|00000b00| 63 72 65 61 74 65 20 6d | 65 6e 75 20 22 55 74 69 |create m|enu "Uti|
|00000b10| 6c 22 0d 70 75 74 20 22 | 41 62 6f 75 74 20 22 26 |l".put "|About "&|
|00000b20| 63 75 72 72 65 6e 74 42 | 6b 67 20 61 66 74 65 72 |currentB|kg after|
|00000b30| 20 6d 65 6e 75 20 22 55 | 74 69 6c 22 20 77 69 74 | menu "U|til" wit|
|00000b40| 68 20 6d 65 6e 75 6d 73 | 67 20 22 41 62 6f 75 74 |h menums|g "About|
|00000b50| 20 63 75 72 72 65 6e 74 | 42 6b 67 22 0d 70 75 74 | current|Bkg".put|
|00000b60| 20 22 2d 22 20 61 66 74 | 65 72 20 6d 65 6e 75 20 | "-" aft|er menu |
|00000b70| 22 55 74 69 6c 22 0d 70 | 75 74 20 22 4e 65 77 20 |"Util".p|ut "New |
|00000b80| 53 54 41 4b 20 4d 65 6e | 75 22 20 61 66 74 65 72 |STAK Men|u" after|
|00000b90| 20 6d 65 6e 75 20 22 55 | 74 69 6c 22 20 77 69 74 | menu "U|til" wit|
|00000ba0| 68 20 6d 65 6e 75 6d 73 | 67 20 61 64 64 53 74 61 |h menums|g addSta|
|00000bb0| 63 6b 0d 70 75 74 20 22 | 4e 65 77 20 41 50 50 4c |ck.put "|New APPL|
|00000bc0| 20 4d 65 6e 75 22 20 61 | 66 74 65 72 20 6d 65 6e | Menu" a|fter men|
|00000bd0| 75 20 22 55 74 69 6c 22 | 20 77 69 74 68 20 6d 65 |u "Util"| with me|
|00000be0| 6e 75 6d 73 67 20 61 64 | 64 41 70 70 6c 0d 70 75 |numsg ad|dAppl.pu|
|00000bf0| 74 20 22 46 6f 72 63 65 | 20 42 26 57 22 20 61 66 |t "Force| B&W" af|
|00000c00| 74 65 72 20 6d 65 6e 75 | 20 22 55 74 69 6c 22 20 |ter menu| "Util" |
|00000c10| 77 69 74 68 20 6d 65 6e | 75 6d 73 67 20 66 6f 72 |with men|umsg for|
|00000c20| 63 65 42 57 0d 70 75 74 | 20 22 52 65 73 75 6d 65 |ceBW.put| "Resume|
|00000c30| 20 43 6f 6c 6f 72 22 20 | 61 66 74 65 72 20 6d 65 | Color" |after me|
|00000c40| 6e 75 20 22 55 74 69 6c | 22 20 77 69 74 68 20 6d |nu "Util|" with m|
|00000c50| 65 6e 75 6d 73 67 20 72 | 65 73 75 6d 65 43 6f 6c |enumsg r|esumeCol|
|00000c60| 6f 72 0d 70 75 74 20 22 | 43 68 61 72 61 63 74 65 |or.put "|Characte|
|00000c70| 72 20 50 61 6c 65 74 74 | 65 22 20 61 66 74 65 72 |r Palett|e" after|
|00000c80| 20 6d 65 6e 75 20 22 55 | 74 69 6c 22 20 77 69 74 | menu "U|til" wit|
|00000c90| 68 20 6d 65 6e 75 6d 73 | 67 20 70 61 6c 65 74 74 |h menums|g palett|
|00000ca0| 65 20 63 68 61 72 61 63 | 74 65 72 0d 70 75 74 20 |e charac|ter.put |
|00000cb0| 22 46 69 6e 64 22 20 61 | 66 74 65 72 20 6d 65 6e |"Find" a|fter men|
|00000cc0| 75 20 22 55 74 69 6c 22 | 20 77 69 74 68 20 6d 65 |u "Util"| with me|
|00000cd0| 6e 75 6d 73 67 20 67 65 | 74 20 57 69 6e 64 6f 77 |numsg ge|t Window|
|00000ce0| 53 63 72 69 70 74 28 22 | 46 69 6e 64 22 29 0d 70 |Script("|Find").p|
|00000cf0| 75 74 20 22 46 69 6e 64 | 20 61 6e 64 20 52 65 70 |ut "Find| and Rep|
|00000d00| 6c 61 63 65 22 20 61 66 | 74 65 72 20 6d 65 6e 75 |lace" af|ter menu|
|00000d10| 20 22 55 74 69 6c 22 20 | 77 69 74 68 20 6d 65 6e | "Util" |with men|
|00000d20| 75 6d 73 67 20 46 69 6e | 64 52 65 70 6c 61 63 65 |umsg Fin|dReplace|
|00000d30| 0d 70 75 74 20 22 2d 22 | 20 61 66 74 65 72 20 6d |.put "-"| after m|
|00000d40| 65 6e 75 20 22 55 74 69 | 6c 22 0d 70 75 74 20 22 |enu "Uti|l".put "|
|00000d50| 43 61 6c 65 6e 64 61 72 | 22 20 61 66 74 65 72 20 |Calendar|" after |
|00000d60| 6d 65 6e 75 20 22 55 74 | 69 6c 22 20 77 69 74 68 |menu "Ut|il" with|
|00000d70| 20 6d 65 6e 75 6d 73 67 | 20 73 68 6f 77 43 61 6c | menumsg| showCal|
|00000d80| 65 6e 64 61 72 0d 70 75 | 74 20 22 54 69 6d 65 22 |endar.pu|t "Time"|
|00000d90| 20 61 66 74 65 72 20 6d | 65 6e 75 20 22 55 74 69 | after m|enu "Uti|
|00000da0| 6c 22 20 77 69 74 68 20 | 6d 65 6e 75 6d 73 67 20 |l" with |menumsg |
|00000db0| 73 68 6f 77 54 69 6d 65 | 0d 73 65 74 20 63 6f 6d |showTime|.set com|
|00000dc0| 6d 61 6e 64 43 68 61 72 | 20 6f 66 20 6d 65 6e 75 |mandChar| of menu|
|00000dd0| 49 74 65 6d 20 38 20 6f | 66 20 6d 65 6e 75 20 22 |Item 8 o|f menu "|
|00000de0| 55 74 69 6c 22 20 74 6f | 20 22 46 22 0d 65 6e 64 |Util" to| "F".end|
|00000df0| 20 73 70 65 63 69 61 6c | 4d 65 6e 75 0d 0d 6f 6e | special|Menu..on|
|00000e00| 20 73 68 6f 77 54 69 6d | 65 0d 69 66 20 74 68 65 | showTim|e.if the|
|00000e10| 72 65 20 69 73 20 61 20 | 77 69 6e 64 6f 77 20 22 |re is a |window "|
|00000e20| 54 69 6d 65 22 20 74 68 | 65 6e 20 63 6c 6f 73 65 |Time" th|en close|
|00000e30| 20 77 69 6e 64 6f 77 20 | 22 54 69 6d 65 22 0d 54 | window |"Time".T|
|00000e40| 65 78 74 6f 69 64 20 22 | 54 69 6d 65 22 2c 74 68 |extoid "|Time",th|
|00000e50| 65 20 73 68 6f 72 74 20 | 74 69 6d 65 2c 22 37 2c |e short |time,"7,|
|00000e60| 31 38 36 2c 31 34 30 2c | 32 31 30 22 2c 22 44 69 |186,140,|210","Di|
|00000e70| 67 69 74 73 22 2c 22 32 | 34 22 2c 22 72 65 64 2c |gits","2|4","red,|
|00000e80| 79 65 6c 6c 6f 77 22 2c | 22 77 69 6e 64 6f 69 64 |yellow",|"windoid|
|00000e90| 22 2c 22 72 69 67 68 74 | 22 0d 73 65 74 20 73 68 |","right|".set sh|
|00000ea0| 6f 77 76 73 63 72 6f 6c | 6c 20 6f 66 20 77 69 6e |owvscrol|l of win|
|00000eb0| 64 6f 77 20 22 74 69 6d | 65 22 20 74 6f 20 66 61 |dow "tim|e" to fa|
|00000ec0| 6c 73 65 0d 73 65 74 20 | 73 68 6f 77 68 73 63 72 |lse.set |showhscr|
|00000ed0| 6f 6c 6c 20 6f 66 20 77 | 69 6e 64 6f 77 20 22 74 |oll of w|indow "t|
|00000ee0| 69 6d 65 22 20 74 6f 20 | 66 61 6c 73 65 0d 74 65 |ime" to |false.te|
|00000ef0| 73 74 45 72 72 6f 72 20 | 74 68 65 20 52 65 73 75 |stError |the Resu|
|00000f00| 6c 74 0d 65 6e 64 20 73 | 68 6f 77 54 69 6d 65 0d |lt.end s|howTime.|
|00000f10| 0d 6f 6e 20 73 68 6f 77 | 43 61 6c 65 6e 64 61 72 |.on show|Calendar|
|00000f20| 0d 69 66 20 74 68 65 72 | 65 20 69 73 20 61 20 77 |.if ther|e is a w|
|00000f30| 69 6e 64 6f 77 20 22 43 | 61 6c 65 6e 64 6f 69 64 |indow "C|alendoid|
|00000f40| 22 20 74 68 65 6e 20 63 | 6c 6f 73 65 20 77 69 6e |" then c|lose win|
|00000f50| 64 6f 77 20 22 43 61 6c | 65 6e 64 6f 69 64 22 0d |dow "Cal|endoid".|
|00000f60| 63 61 6c 65 6e 64 6f 69 | 64 0d 73 65 74 20 6c 6f |calendoi|d.set lo|
|00000f70| 63 20 6f 66 20 77 69 6e | 64 6f 77 20 22 43 61 6c |c of win|dow "Cal|
|00000f80| 65 6e 64 6f 69 64 22 20 | 74 6f 20 22 37 2c 33 35 |endoid" |to "7,35|
|00000f90| 22 0d 65 6e 64 20 73 68 | 6f 77 43 61 6c 65 6e 64 |".end sh|owCalend|
|00000fa0| 61 72 0d 0d 6f 6e 20 63 | 72 65 61 74 65 4d 65 6e |ar..on c|reateMen|
|00000fb0| 75 0d 70 75 74 20 74 68 | 65 20 73 74 61 63 6b 73 |u.put th|e stacks|
|00000fc0| 20 69 6e 74 6f 20 74 68 | 65 53 74 61 63 6b 73 0d | into th|eStacks.|
|00000fd0| 69 66 20 74 68 65 72 65 | 20 69 73 20 61 20 6d 65 |if there| is a me|
|00000fe0| 6e 75 20 22 57 44 73 22 | 20 74 68 65 6e 0d 64 65 |nu "WDs"| then.de|
|00000ff0| 6c 65 74 65 20 6d 65 6e | 75 20 22 57 44 73 22 0d |lete men|u "WDs".|
|00001000| 63 72 65 61 74 65 20 6d | 65 6e 75 20 22 57 44 73 |create m|enu "WDs|
|00001010| 22 0d 67 65 74 20 43 72 | 65 61 74 65 4e 65 77 4d |".get Cr|eateNewM|
|00001020| 65 6e 75 28 74 68 65 53 | 74 61 63 6b 73 2c 22 53 |enu(theS|tacks,"S|
|00001030| 54 41 4b 22 29 0d 70 75 | 74 20 28 69 74 65 6d 20 |TAK").pu|t (item |
|00001040| 31 20 6f 66 20 69 74 29 | 20 61 66 74 65 72 20 6d |1 of it)| after m|
|00001050| 65 6e 75 20 22 57 44 73 | 22 20 77 69 74 68 20 6d |enu "WDs|" with m|
|00001060| 65 6e 75 6d 73 67 20 28 | 49 74 65 6d 20 32 20 6f |enumsg (|Item 2 o|
|00001070| 66 20 69 74 29 0d 65 78 | 69 74 20 63 72 65 61 74 |f it).ex|it creat|
|00001080| 65 4d 65 6e 75 0d 65 6e | 64 20 69 66 0d 70 75 74 |eMenu.en|d if.put|
|00001090| 20 67 65 74 44 69 72 28 | 64 65 66 61 75 6c 74 46 | getDir(|defaultF|
|000010a0| 6f 6c 64 65 72 4e 61 6d | 65 28 29 2c 22 44 22 29 |olderNam|e(),"D")|
|000010b0| 20 69 6e 74 6f 20 4d 65 | 6e 75 54 69 74 6c 65 73 | into Me|nuTitles|
|000010c0| 0d 72 65 70 65 61 74 20 | 77 69 74 68 20 78 3d 31 |.repeat |with x=1|
|000010d0| 20 74 6f 20 74 68 65 20 | 6e 75 6d 62 65 72 20 6f | to the |number o|
|000010e0| 66 20 6c 69 6e 65 73 20 | 69 6e 20 4d 65 6e 75 54 |f lines |in MenuT|
|000010f0| 69 74 6c 65 73 0d 50 75 | 74 20 46 69 6c 65 73 28 |itles.Pu|t Files(|
|00001100| 64 65 66 61 75 6c 74 46 | 6f 6c 64 65 72 4e 61 6d |defaultF|olderNam|
|00001110| 65 28 29 26 22 3a 22 26 | 6c 69 6e 65 20 78 20 6f |e()&":"&|line x o|
|00001120| 66 20 4d 65 6e 75 54 69 | 74 6c 65 73 2c 22 53 54 |f MenuTi|tles,"ST|
|00001130| 41 4b 22 29 20 69 6e 74 | 6f 20 74 68 65 4d 65 6e |AK") int|o theMen|
|00001140| 75 49 74 65 6d 73 0d 72 | 65 70 65 61 74 20 77 69 |uItems.r|epeat wi|
|00001150| 74 68 20 79 20 3d 20 31 | 20 74 6f 20 74 68 65 20 |th y = 1| to the |
|00001160| 6e 75 6d 62 65 72 20 6f | 66 20 6c 69 6e 65 73 20 |number o|f lines |
|00001170| 69 6e 20 74 68 65 4d 65 | 6e 75 49 74 65 6d 73 0d |in theMe|nuItems.|
|00001180| 70 75 74 20 64 65 66 61 | 75 6c 74 46 6f 6c 64 65 |put defa|ultFolde|
|00001190| 72 4e 61 6d 65 28 29 26 | 22 3a 22 26 20 6c 69 6e |rName()&|":"& lin|
|000011a0| 65 20 78 20 6f 66 20 4d | 65 6e 75 54 69 74 6c 65 |e x of M|enuTitle|
|000011b0| 73 20 62 65 66 6f 72 65 | 20 6c 69 6e 65 20 79 20 |s before| line y |
|000011c0| 6f 66 20 74 68 65 4d 65 | 6e 75 49 74 65 6d 73 0d |of theMe|nuItems.|
|000011d0| 65 6e 64 20 72 65 70 65 | 61 74 0d 64 65 6c 65 74 |end repe|at.delet|
|000011e0| 65 20 74 68 65 20 6c 61 | 73 74 20 63 68 61 72 20 |e the la|st char |
|000011f0| 6f 66 20 6c 69 6e 65 20 | 78 20 6f 66 20 4d 65 6e |of line |x of Men|
|00001200| 75 54 69 74 6c 65 73 0d | 70 75 74 20 6c 69 6e 65 |uTitles.|put line|
|00001210| 20 78 20 6f 66 20 4d 65 | 6e 75 54 69 74 6c 65 73 | x of Me|nuTitles|
|00001220| 20 69 6e 74 6f 20 74 68 | 65 4d 65 6e 75 0d 63 72 | into th|eMenu.cr|
|00001230| 65 61 74 65 20 6d 65 6e | 75 20 74 68 65 4d 65 6e |eate men|u theMen|
|00001240| 75 0d 67 65 74 20 43 72 | 65 61 74 65 4e 65 77 4d |u.get Cr|eateNewM|
|00001250| 65 6e 75 28 74 68 65 4d | 65 6e 75 49 74 65 6d 73 |enu(theM|enuItems|
|00001260| 2c 22 53 54 41 4b 22 29 | 0d 70 75 74 20 28 69 74 |,"STAK")|.put (it|
|00001270| 65 6d 20 31 20 6f 66 20 | 69 74 29 20 61 66 74 65 |em 1 of |it) afte|
|00001280| 72 20 6d 65 6e 75 20 74 | 68 65 4d 65 6e 75 20 77 |r menu t|heMenu w|
|00001290| 69 74 68 20 6d 65 6e 75 | 6d 73 67 20 28 49 74 65 |ith menu|msg (Ite|
|000012a0| 6d 20 32 20 6f 66 20 69 | 74 29 0d 65 6e 64 20 72 |m 2 of i|t).end r|
|000012b0| 65 70 65 61 74 0d 63 72 | 65 61 74 65 20 6d 65 6e |epeat.cr|eate men|
|000012c0| 75 20 22 57 44 73 22 0d | 67 65 74 20 43 72 65 61 |u "WDs".|get Crea|
|000012d0| 74 65 4e 65 77 4d 65 6e | 75 28 74 68 65 53 74 61 |teNewMen|u(theSta|
|000012e0| 63 6b 73 2c 22 53 54 41 | 4b 22 29 0d 70 75 74 20 |cks,"STA|K").put |
|000012f0| 28 69 74 65 6d 20 31 20 | 6f 66 20 69 74 29 20 61 |(item 1 |of it) a|
|00001300| 66 74 65 72 20 6d 65 6e | 75 20 22 57 44 73 22 20 |fter men|u "WDs" |
|00001310| 77 69 74 68 20 6d 65 6e | 75 6d 73 67 20 28 49 74 |with men|umsg (It|
|00001320| 65 6d 20 32 20 6f 66 20 | 69 74 29 0d 65 6e 64 20 |em 2 of |it).end |
|00001330| 63 72 65 61 74 65 4d 65 | 6e 75 0d 0d 66 75 6e 63 |createMe|nu..func|
|00001340| 74 69 6f 6e 20 64 65 66 | 61 75 6c 74 46 6f 6c 64 |tion def|aultFold|
|00001350| 65 72 4e 61 6d 65 0d 67 | 65 74 20 74 68 65 20 6c |erName.g|et the l|
|00001360| 6f 6e 67 20 6e 61 6d 65 | 20 6f 66 20 73 74 61 63 |ong name| of stac|
|00001370| 6b 20 22 4c 61 62 48 65 | 6c 70 65 72 22 0d 64 65 |k "LabHe|lper".de|
|00001380| 6c 65 74 65 20 77 6f 72 | 64 20 31 20 6f 66 20 69 |lete wor|d 1 of i|
|00001390| 74 0d 64 65 6c 65 74 65 | 20 63 68 61 72 20 31 20 |t.delete| char 1 |
|000013a0| 6f 66 20 69 74 0d 64 65 | 6c 65 74 65 20 6c 61 73 |of it.de|lete las|
|000013b0| 74 20 63 68 61 72 20 6f | 66 20 69 74 0d 72 65 74 |t char o|f it.ret|
|000013c0| 75 72 6e 20 66 6f 6c 64 | 65 72 50 61 74 68 28 69 |urn fold|erPath(i|
|000013d0| 74 29 0d 65 6e 64 20 64 | 65 66 61 75 6c 74 46 6f |t).end d|efaultFo|
|000013e0| 6c 64 65 72 4e 61 6d 65 | 0d 0d 66 75 6e 63 74 69 |lderName|..functi|
|000013f0| 6f 6e 20 46 6f 6c 64 65 | 72 50 61 74 68 20 6e 61 |on Folde|rPath na|
|00001400| 6d 65 0d 72 65 70 65 61 | 74 20 77 69 74 68 20 69 |me.repea|t with i|
|00001410| 20 3d 20 74 68 65 20 6c | 65 6e 67 74 68 20 6f 66 | = the l|ength of|
|00001420| 20 6e 61 6d 65 20 64 6f | 77 6e 20 74 6f 20 31 0d | name do|wn to 1.|
|00001430| 69 66 20 63 68 61 72 61 | 63 74 65 72 20 69 20 6f |if chara|cter i o|
|00001440| 66 20 6e 61 6d 65 20 69 | 73 20 22 3a 22 20 74 68 |f name i|s ":" th|
|00001450| 65 6e 20 65 78 69 74 20 | 72 65 70 65 61 74 0d 65 |en exit |repeat.e|
|00001460| 6e 64 20 72 65 70 65 61 | 74 0d 73 75 62 74 72 61 |nd repea|t.subtra|
|00001470| 63 74 20 31 20 66 72 6f | 6d 20 69 0d 70 75 74 20 |ct 1 fro|m i.put |
|00001480| 65 6d 70 74 79 20 69 6e | 74 6f 20 74 68 65 50 61 |empty in|to thePa|
|00001490| 74 68 0d 69 66 20 69 20 | 3e 20 30 20 74 68 65 6e |th.if i |> 0 then|
|000014a0| 20 70 75 74 20 63 68 61 | 72 20 31 20 74 6f 20 69 | put cha|r 1 to i|
|000014b0| 20 6f 66 20 6e 61 6d 65 | 20 69 6e 74 6f 20 74 68 | of name| into th|
|000014c0| 65 50 61 74 68 0d 72 65 | 74 75 72 6e 20 74 68 65 |ePath.re|turn the|
|000014d0| 50 61 74 68 0d 65 6e 64 | 20 46 6f 6c 64 65 72 50 |Path.end| FolderP|
|000014e0| 61 74 68 0d 0d 6f 6e 20 | 61 64 64 53 74 61 63 6b |ath..on |addStack|
|000014f0| 0d 70 75 74 20 46 69 6c | 65 4e 61 6d 65 28 22 53 |.put Fil|eName("S|
|00001500| 54 41 4b 22 29 20 69 6e | 74 6f 20 61 64 64 53 74 |TAK") in|to addSt|
|00001510| 61 63 6b 50 61 74 68 0d | 70 75 74 20 61 64 64 53 |ackPath.|put addS|
|00001520| 74 61 63 6b 50 61 74 68 | 20 69 6e 74 6f 20 61 64 |tackPath| into ad|
|00001530| 64 46 6f 6c 64 65 72 50 | 61 74 68 0d 69 66 20 61 |dFolderP|ath.if a|
|00001540| 64 64 53 74 61 63 6b 50 | 61 74 68 20 69 73 20 65 |ddStackP|ath is e|
|00001550| 6d 70 74 79 20 74 68 65 | 6e 0d 65 78 69 74 20 74 |mpty the|n.exit t|
|00001560| 6f 20 68 79 70 65 72 63 | 61 72 64 0d 65 6e 64 20 |o hyperc|ard.end |
|00001570| 69 66 0d 70 75 74 20 46 | 6f 6c 64 65 72 50 61 74 |if.put F|olderPat|
|00001580| 68 28 61 64 64 53 74 61 | 63 6b 50 61 74 68 29 20 |h(addSta|ckPath) |
|00001590| 69 6e 74 6f 20 61 64 64 | 53 74 61 63 6b 50 61 74 |into add|StackPat|
|000015a0| 68 0d 69 66 20 61 64 64 | 53 74 61 63 6b 50 61 74 |h.if add|StackPat|
|000015b0| 68 20 69 73 20 65 6d 70 | 74 79 20 74 68 65 6e 0d |h is emp|ty then.|
|000015c0| 61 6e 73 77 65 72 20 22 | 50 72 6f 62 6c 65 6d 73 |answer "|Problems|
|000015d0| 20 77 69 74 68 20 74 68 | 69 73 20 66 6f 6c 64 65 | with th|is folde|
|000015e0| 72 20 6e 61 6d 65 22 20 | 77 69 74 68 20 22 54 6f |r name" |with "To|
|000015f0| 6f 20 62 61 64 22 0d 65 | 78 69 74 20 74 6f 20 68 |o bad".e|xit to h|
|00001600| 79 70 65 72 63 61 72 64 | 0d 65 6e 64 20 69 66 0d |ypercard|.end if.|
|00001610| 50 75 74 20 46 69 6c 65 | 73 28 61 64 64 53 74 61 |Put File|s(addSta|
|00001620| 63 6b 50 61 74 68 2c 22 | 53 54 41 4b 22 29 20 69 |ckPath,"|STAK") i|
|00001630| 6e 74 6f 20 74 68 65 4d | 65 6e 75 49 74 65 6d 73 |nto theM|enuItems|
|00001640| 0d 72 65 70 65 61 74 20 | 77 69 74 68 20 78 20 3d |.repeat |with x =|
|00001650| 20 31 20 74 6f 20 74 68 | 65 20 6e 75 6d 62 65 72 | 1 to th|e number|
|00001660| 20 6f 66 20 6c 69 6e 65 | 73 20 69 6e 20 74 68 65 | of line|s in the|
|00001670| 4d 65 6e 75 49 74 65 6d | 73 0d 70 75 74 20 61 64 |MenuItem|s.put ad|
|00001680| 64 53 74 61 63 6b 50 61 | 74 68 26 22 3a 22 20 62 |dStackPa|th&":" b|
|00001690| 65 66 6f 72 65 20 6c 69 | 6e 65 20 78 20 6f 66 20 |efore li|ne x of |
|000016a0| 74 68 65 4d 65 6e 75 49 | 74 65 6d 73 0d 65 6e 64 |theMenuI|tems.end|
|000016b0| 20 72 65 70 65 61 74 0d | 73 65 74 20 74 68 65 20 | repeat.|set the |
|000016c0| 63 75 72 73 6f 72 20 74 | 6f 20 77 61 74 63 68 0d |cursor t|o watch.|
|000016d0| 69 66 20 74 68 65 72 65 | 20 69 73 20 61 20 6d 65 |if there| is a me|
|000016e0| 6e 75 20 4d 65 6e 75 4e | 61 6d 65 28 61 64 64 46 |nu MenuN|ame(addF|
|000016f0| 6f 6c 64 65 72 50 61 74 | 68 29 20 74 68 65 6e 20 |olderPat|h) then |
|00001700| 64 65 6c 65 74 65 20 6d | 65 6e 75 20 4d 65 6e 75 |delete m|enu Menu|
|00001710| 4e 61 6d 65 28 61 64 64 | 46 6f 6c 64 65 72 50 61 |Name(add|FolderPa|
|00001720| 74 68 29 0d 63 72 65 61 | 74 65 20 6d 65 6e 75 20 |th).crea|te menu |
|00001730| 4d 65 6e 75 4e 61 6d 65 | 28 61 64 64 46 6f 6c 64 |MenuName|(addFold|
|00001740| 65 72 50 61 74 68 29 0d | 70 75 74 20 4d 65 6e 75 |erPath).|put Menu|
|00001750| 4e 61 6d 65 28 61 64 64 | 46 6f 6c 64 65 72 50 61 |Name(add|FolderPa|
|00001760| 74 68 29 20 69 6e 74 6f | 20 74 68 65 4d 65 6e 75 |th) into| theMenu|
|00001770| 0d 67 65 74 20 43 72 65 | 61 74 65 4e 65 77 4d 65 |.get Cre|ateNewMe|
|00001780| 6e 75 28 74 68 65 4d 65 | 6e 75 49 74 65 6d 73 2c |nu(theMe|nuItems,|
|00001790| 22 53 54 41 4b 22 2c 74 | 72 75 65 2c 74 68 65 4d |"STAK",t|rue,theM|
|000017a0| 65 6e 75 29 0d 70 75 74 | 20 28 69 74 65 6d 20 31 |enu).put| (item 1|
|000017b0| 20 6f 66 20 69 74 29 20 | 61 66 74 65 72 20 6d 65 | of it) |after me|
|000017c0| 6e 75 20 4d 65 6e 75 4e | 61 6d 65 28 61 64 64 46 |nu MenuN|ame(addF|
|000017d0| 6f 6c 64 65 72 50 61 74 | 68 29 20 77 69 74 68 20 |olderPat|h) with |
|000017e0| 6d 65 6e 75 6d 73 67 20 | 28 69 74 65 6d 20 32 20 |menumsg |(item 2 |
|000017f0| 6f 66 20 69 74 29 0d 65 | 6e 64 20 61 64 64 53 74 |of it).e|nd addSt|
|00001800| 61 63 6b 0d 0d 6f 6e 20 | 61 64 64 41 70 70 6c 0d |ack..on |addAppl.|
|00001810| 70 75 74 20 46 69 6c 65 | 4e 61 6d 65 28 22 41 50 |put File|Name("AP|
|00001820| 50 4c 22 29 20 69 6e 74 | 6f 20 61 64 64 41 70 70 |PL") int|o addApp|
|00001830| 6c 50 61 74 68 0d 70 75 | 74 20 61 64 64 41 70 70 |lPath.pu|t addApp|
|00001840| 6c 50 61 74 68 20 69 6e | 74 6f 20 61 64 64 46 6f |lPath in|to addFo|
|00001850| 6c 64 65 72 50 61 74 68 | 0d 69 66 20 61 64 64 41 |lderPath|.if addA|
|00001860| 70 70 6c 50 61 74 68 20 | 69 73 20 65 6d 70 74 79 |pplPath |is empty|
|00001870| 20 74 68 65 6e 0d 65 78 | 69 74 20 74 6f 20 68 79 | then.ex|it to hy|
|00001880| 70 65 72 63 61 72 64 0d | 65 6e 64 20 69 66 0d 70 |percard.|end if.p|
|00001890| 75 74 20 46 6f 6c 64 65 | 72 50 61 74 68 28 61 64 |ut Folde|rPath(ad|
|000018a0| 64 41 70 70 6c 50 61 74 | 68 29 20 69 6e 74 6f 20 |dApplPat|h) into |
|000018b0| 61 64 64 41 70 70 6c 50 | 61 74 68 0d 69 66 20 61 |addApplP|ath.if a|
|000018c0| 64 64 41 70 70 6c 50 61 | 74 68 20 69 73 20 65 6d |ddApplPa|th is em|
|000018d0| 70 74 79 20 74 68 65 6e | 0d 61 6e 73 77 65 72 20 |pty then|.answer |
|000018e0| 22 50 72 6f 62 6c 65 6d | 73 20 77 69 74 68 20 74 |"Problem|s with t|
|000018f0| 68 69 73 20 66 6f 6c 64 | 65 72 20 6e 61 6d 65 22 |his fold|er name"|
|00001900| 20 77 69 74 68 20 22 54 | 6f 6f 20 62 61 64 22 0d | with "T|oo bad".|
|00001910| 65 78 69 74 20 74 6f 20 | 68 79 70 65 72 63 61 72 |exit to |hypercar|
|00001920| 64 0d 65 6e 64 20 69 66 | 0d 50 75 74 20 46 69 6c |d.end if|.Put Fil|
|00001930| 65 73 28 61 64 64 41 70 | 70 6c 50 61 74 68 2c 22 |es(addAp|plPath,"|
|00001940| 41 50 50 4c 22 29 20 69 | 6e 74 6f 20 74 68 65 4d |APPL") i|nto theM|
|00001950| 65 6e 75 49 74 65 6d 73 | 0d 72 65 70 65 61 74 20 |enuItems|.repeat |
|00001960| 77 69 74 68 20 78 20 3d | 20 31 20 74 6f 20 74 68 |with x =| 1 to th|
|00001970| 65 20 6e 75 6d 62 65 72 | 20 6f 66 20 6c 69 6e 65 |e number| of line|
|00001980| 73 20 69 6e 20 74 68 65 | 4d 65 6e 75 49 74 65 6d |s in the|MenuItem|
|00001990| 73 0d 70 75 74 20 61 64 | 64 41 70 70 6c 50 61 74 |s.put ad|dApplPat|
|000019a0| 68 26 22 3a 22 20 62 65 | 66 6f 72 65 20 6c 69 6e |h&":" be|fore lin|
|000019b0| 65 20 78 20 6f 66 20 74 | 68 65 4d 65 6e 75 49 74 |e x of t|heMenuIt|
|000019c0| 65 6d 73 0d 65 6e 64 20 | 72 65 70 65 61 74 0d 73 |ems.end |repeat.s|
|000019d0| 65 74 20 74 68 65 20 63 | 75 72 73 6f 72 20 74 6f |et the c|ursor to|
|000019e0| 20 77 61 74 63 68 0d 69 | 66 20 74 68 65 72 65 20 | watch.i|f there |
|000019f0| 69 73 20 61 20 6d 65 6e | 75 20 4d 65 6e 75 4e 61 |is a men|u MenuNa|
|00001a00| 6d 65 28 61 64 64 46 6f | 6c 64 65 72 50 61 74 68 |me(addFo|lderPath|
|00001a10| 29 20 74 68 65 6e 20 64 | 65 6c 65 74 65 20 6d 65 |) then d|elete me|
|00001a20| 6e 75 20 4d 65 6e 75 4e | 61 6d 65 28 61 64 64 46 |nu MenuN|ame(addF|
|00001a30| 6f 6c 64 65 72 50 61 74 | 68 29 0d 63 72 65 61 74 |olderPat|h).creat|
|00001a40| 65 20 6d 65 6e 75 20 4d | 65 6e 75 4e 61 6d 65 28 |e menu M|enuName(|
|00001a50| 61 64 64 46 6f 6c 64 65 | 72 50 61 74 68 29 0d 70 |addFolde|rPath).p|
|00001a60| 75 74 20 4d 65 6e 75 4e | 61 6d 65 28 61 64 64 46 |ut MenuN|ame(addF|
|00001a70| 6f 6c 64 65 72 50 61 74 | 68 29 20 69 6e 74 6f 20 |olderPat|h) into |
|00001a80| 74 68 65 4d 65 6e 75 0d | 67 65 74 20 43 72 65 61 |theMenu.|get Crea|
|00001a90| 74 65 4e 65 77 4d 65 6e | 75 28 74 68 65 4d 65 6e |teNewMen|u(theMen|
|00001aa0| 75 49 74 65 6d 73 2c 22 | 41 50 50 4c 22 2c 74 72 |uItems,"|APPL",tr|
|00001ab0| 75 65 2c 74 68 65 4d 65 | 6e 75 29 0d 70 75 74 20 |ue,theMe|nu).put |
|00001ac0| 28 69 74 65 6d 20 31 20 | 6f 66 20 69 74 29 20 61 |(item 1 |of it) a|
|00001ad0| 66 74 65 72 20 6d 65 6e | 75 20 4d 65 6e 75 4e 61 |fter men|u MenuNa|
|00001ae0| 6d 65 28 61 64 64 46 6f | 6c 64 65 72 50 61 74 68 |me(addFo|lderPath|
|00001af0| 29 20 77 69 74 68 20 6d | 65 6e 75 6d 73 67 20 28 |) with m|enumsg (|
|00001b00| 69 74 65 6d 20 32 20 6f | 66 20 69 74 29 0d 65 6e |item 2 o|f it).en|
|00001b10| 64 20 61 64 64 41 70 70 | 6c 0d 0d 6f 6e 20 63 68 |d addApp|l..on ch|
|00001b20| 65 63 6b 46 6f 72 4d 69 | 73 73 69 6e 67 46 6f 6e |eckForMi|ssingFon|
|00001b30| 74 73 0d 67 65 74 20 63 | 68 65 63 6b 48 43 46 6f |ts.get c|heckHCFo|
|00001b40| 6e 74 28 22 4c 61 62 48 | 65 6c 70 65 72 22 2c 22 |nt("LabH|elper","|
|00001b50| 39 22 29 0d 69 66 20 69 | 74 20 69 73 20 65 6d 70 |9").if i|t is emp|
|00001b60| 74 79 20 74 68 65 6e 20 | 65 78 69 74 20 63 68 65 |ty then |exit che|
|00001b70| 63 6b 46 6f 72 4d 69 73 | 73 69 6e 67 46 6f 6e 74 |ckForMis|singFont|
|00001b80| 73 0d 65 6c 73 65 20 70 | 75 74 20 69 74 20 69 6e |s.else p|ut it in|
|00001b90| 74 6f 20 6d 69 73 73 69 | 6e 67 46 6f 6e 74 73 0d |to missi|ngFonts.|
|00001ba0| 62 65 65 70 0d 61 6e 73 | 77 65 72 20 22 54 68 69 |beep.ans|wer "Thi|
|00001bb0| 73 20 66 6f 6e 74 20 69 | 73 20 6d 69 73 73 69 6e |s font i|s missin|
|00001bc0| 67 20 66 72 6f 6d 20 79 | 6f 75 72 20 73 79 73 74 |g from y|our syst|
|00001bd0| 65 6d 3a 22 20 26 20 c2 | 0d 72 65 74 75 72 6e 20 |em:" & .|.return |
|00001be0| 26 20 72 65 74 75 72 6e | 20 26 20 6d 69 73 73 69 |& return| & missi|
|00001bf0| 6e 67 46 6f 6e 74 73 20 | 26 20 72 65 74 75 72 6e |ngFonts |& return|
|00001c00| 20 26 20 c2 0d 22 46 6f | 72 20 74 65 78 74 20 74 | & .."Fo|r text t|
|00001c10| 6f 20 64 69 73 70 6c 61 | 79 20 63 6f 72 72 65 63 |o displa|y correc|
|00001c20| 74 6c 79 20 69 6e 20 74 | 68 69 73 20 73 74 61 63 |tly in t|his stac|
|00001c30| 6b 2c 20 6d 61 6b 65 20 | 73 75 72 65 20 79 6f 75 |k, make |sure you|
|00001c40| 20 68 61 76 65 22 20 c2 | 0d 26 26 20 22 69 6e 73 | have" .|.&& "ins|
|00001c50| 74 61 6c 6c 65 64 20 74 | 68 65 20 4c 61 62 48 65 |talled t|he LabHe|
|00001c60| 6c 70 65 72 20 39 20 66 | 6f 6e 74 2e 22 0d 65 6e |lper 9 f|ont.".en|
|00001c70| 64 20 63 68 65 63 6b 46 | 6f 72 4d 69 73 73 69 6e |d checkF|orMissin|
|00001c80| 67 46 6f 6e 74 73 0d 0d | 6f 6e 20 61 62 6f 75 74 |gFonts..|on about|
|00001c90| 20 77 68 61 74 0d 67 6c | 6f 62 61 6c 20 63 75 72 | what.gl|obal cur|
|00001ca0| 72 65 6e 74 42 6b 67 0d | 54 65 78 74 6f 69 64 20 |rentBkg.|Textoid |
|00001cb0| 22 41 62 6f 75 74 20 22 | 20 26 20 63 75 72 72 65 |"About "| & curre|
|00001cc0| 6e 74 42 6b 67 2c 66 6c | 64 20 22 41 62 6f 75 74 |ntBkg,fl|d "About|
|00001cd0| 2e 2e 2e 22 2c 22 47 65 | 6e 65 76 61 22 2c 31 32 |...","Ge|neva",12|
|00001ce0| 2c 22 62 6c 75 65 22 2c | 22 42 69 67 57 69 6e 64 |,"blue",|"BigWind|
|00001cf0| 6f 69 64 5a 6f 6f 6d 22 | 2c 22 37 2c 34 33 22 0d |oidZoom"|,"7,43".|
|00001d00| 74 65 73 74 45 72 72 6f | 72 20 74 68 65 20 52 65 |testErro|r the Re|
|00001d10| 73 75 6c 74 0d 65 6e 64 | 20 61 62 6f 75 74 0d 0d |sult.end| about..|
|00001d20| 6f 6e 20 54 65 73 74 45 | 72 72 6f 72 20 57 68 61 |on TestE|rror Wha|
|00001d30| 74 0d 69 66 20 57 68 61 | 74 20 ad 20 65 6d 70 74 |t.if Wha|t . empt|
|00001d40| 79 0d 74 68 65 6e 0d 62 | 65 65 70 0d 61 6e 73 77 |y.then.b|eep.answ|
|00001d50| 65 72 20 57 68 61 74 0d | 65 78 69 74 20 74 6f 20 |er What.|exit to |
|00001d60| 48 79 70 65 72 43 61 72 | 64 0d 65 6e 64 20 69 66 |HyperCar|d.end if|
|00001d70| 0d 65 6e 64 20 54 65 73 | 74 45 72 72 6f 72 0d 0d |.end Tes|tError..|
|00001d80| 6f 6e 20 63 6c 6f 73 65 | 53 74 61 63 6b 0d 6c 6f |on close|Stack.lo|
|00001d90| 63 6b 20 73 63 72 65 65 | 6e 0d 69 66 20 74 68 65 |ck scree|n.if the|
|00001da0| 72 65 20 69 73 20 61 20 | 6d 65 6e 75 20 22 55 74 |re is a |menu "Ut|
|00001db0| 69 6c 22 20 74 68 65 6e | 20 64 65 6c 65 74 65 20 |il" then| delete |
|00001dc0| 6d 65 6e 75 20 22 55 74 | 69 6c 22 0d 63 48 43 63 |menu "Ut|il".cHCc|
|00001dd0| 6c 6f 73 65 0d 69 66 20 | 66 72 65 65 53 69 7a 65 |lose.if |freeSize|
|00001de0| 20 6f 66 20 74 68 69 73 | 20 73 74 61 63 6b 3e 31 | of this| stack>1|
|00001df0| 30 2a 31 30 32 34 20 74 | 68 65 6e 0d 69 66 20 74 |0*1024 t|hen.if t|
|00001e00| 68 65 20 73 68 6f 72 74 | 20 6e 61 6d 65 20 6f 66 |he short| name of|
|00001e10| 20 74 68 69 73 20 73 74 | 61 63 6b 20 69 73 20 6e | this st|ack is n|
|00001e20| 6f 74 20 22 4c 61 62 48 | 65 6c 70 65 72 22 20 74 |ot "LabH|elper" t|
|00001e30| 68 65 6e 0d 70 72 6f 6d | 70 74 6f 69 64 20 22 43 |hen.prom|ptoid "C|
|00001e40| 6f 6d 70 61 63 74 69 6e | 67 20 53 74 61 63 6b 2e |ompactin|g Stack.|
|00001e50| 2e 2e 22 0d 64 6f 4d 65 | 6e 75 20 22 43 6f 6d 70 |..".doMe|nu "Comp|
|00001e60| 61 63 74 20 53 74 61 63 | 6b 22 0d 63 6c 6f 73 65 |act Stac|k".close|
|00001e70| 20 77 69 6e 64 6f 77 20 | 70 72 6f 6d 70 74 6f 69 | window |promptoi|
|00001e80| 64 0d 65 6e 64 20 69 66 | 0d 65 6e 64 20 69 66 0d |d.end if|.end if.|
|00001e90| 65 6e 64 20 63 6c 6f 73 | 65 53 74 61 63 6b 0d 0d |end clos|eStack..|
|00001ea0| 6f 6e 20 66 6f 72 63 65 | 42 57 0d 67 6c 6f 62 61 |on force|BW.globa|
|00001eb0| 6c 20 49 6e 43 6f 6c 6f | 72 0d 70 75 74 20 66 61 |l InColo|r.put fa|
|00001ec0| 6c 73 65 20 69 6e 74 6f | 20 49 6e 43 6f 6c 6f 72 |lse into| InColor|
|00001ed0| 0d 72 65 73 75 6d 65 53 | 74 61 63 6b 0d 65 6e 64 |.resumeS|tack.end|
|00001ee0| 20 66 6f 72 63 65 42 57 | 0d 0d 6f 6e 20 72 65 73 | forceBW|..on res|
|00001ef0| 75 6d 65 43 6f 6c 6f 72 | 0d 67 6c 6f 62 61 6c 20 |umeColor|.global |
|00001f00| 49 6e 43 6f 6c 6f 72 0d | 70 75 74 20 74 72 75 65 |InColor.|put true|
|00001f10| 20 69 6e 74 6f 20 49 6e | 43 6f 6c 6f 72 0d 72 65 | into In|Color.re|
|00001f20| 73 75 6d 65 53 74 61 63 | 6b 0d 65 6e 64 20 72 65 |sumeStac|k.end re|
|00001f30| 73 75 6d 65 43 6f 6c 6f | 72 0d 0d 6f 6e 20 72 65 |sumeColo|r..on re|
|00001f40| 73 75 6d 65 53 74 61 63 | 6b 0d 67 6c 6f 62 61 6c |sumeStac|k.global|
|00001f50| 20 49 6e 43 6f 6c 6f 72 | 0d 63 48 43 72 65 73 74 | InColor|.cHCrest|
|00001f60| 61 72 74 20 49 6e 43 6f | 6c 6f 72 2c 20 22 48 43 |art InCo|lor, "HC|
|00001f70| 63 6f 6c 6f 72 69 7a 65 | 22 0d 63 72 65 61 74 65 |colorize|".create|
|00001f80| 4d 65 6e 75 0d 6f 70 65 | 6e 42 61 63 6b 67 72 6f |Menu.ope|nBackgro|
|00001f90| 75 6e 64 0d 65 6e 64 20 | 72 65 73 75 6d 65 53 74 |und.end |resumeSt|
|00001fa0| 61 63 6b 0d 0d 6f 6e 20 | 73 75 73 70 65 6e 64 53 |ack..on |suspendS|
|00001fb0| 74 61 63 6b 0d 63 48 43 | 6c 65 61 76 65 0d 63 6c |tack.cHC|leave.cl|
|00001fc0| 6f 73 65 42 61 63 6b 67 | 72 6f 75 6e 64 0d 65 6e |oseBackg|round.en|
|00001fd0| 64 20 73 75 73 70 65 6e | 64 53 74 61 63 6b 0d 0d |d suspen|dStack..|
|00001fe0| 6f 6e 20 64 6f 4d 65 6e | 75 20 77 68 69 63 68 0d |on doMen|u which.|
|00001ff0| 69 66 20 77 68 69 63 68 | 20 69 73 20 22 43 6f 70 |if which| is "Cop|
|00002000| 79 20 43 61 72 64 22 20 | 6f 72 20 77 68 69 63 68 |y Card" |or which|
|00002010| 20 69 73 20 22 4e 65 77 | 20 43 61 72 64 22 20 6f | is "New| Card" o|
|00002020| 72 c2 0d 77 68 69 63 68 | 20 69 73 20 22 50 61 73 |r..which| is "Pas|
|00002030| 74 65 20 43 61 72 64 22 | 20 6f 72 20 77 68 69 63 |te Card"| or whic|
|00002040| 68 20 69 73 20 22 50 72 | 6f 74 65 63 74 20 53 74 |h is "Pr|otect St|
|00002050| 61 63 6b 2e 2e 2e 22 20 | 74 68 65 6e 0d 69 66 20 |ack..." |then.if |
|00002060| 6c 69 63 65 6e 73 65 43 | 68 65 63 6b 28 29 20 69 |licenseC|heck() i|
|00002070| 73 20 22 50 61 73 73 22 | 20 74 68 65 6e 0d 65 6c |s "Pass"| then.el|
|00002080| 73 65 0d 61 6e 73 77 65 | 72 20 22 46 65 61 74 75 |se.answe|r "Featu|
|00002090| 72 65 20 6e 6f 74 20 61 | 76 61 69 6c 61 62 6c 65 |re not a|vailable|
|000020a0| 20 69 6e 20 75 6e 72 65 | 67 69 73 74 65 72 65 64 | in unre|gistered|
|000020b0| 20 63 6f 70 79 21 22 0d | 65 78 69 74 20 64 6f 4d | copy!".|exit doM|
|000020c0| 65 6e 75 0d 65 6e 64 20 | 69 66 0d 65 6c 73 65 20 |enu.end |if.else |
|000020d0| 69 66 20 77 68 69 63 68 | 20 69 73 20 22 51 75 69 |if which| is "Qui|
|000020e0| 74 20 48 79 70 65 72 43 | 61 72 64 22 20 74 68 65 |t HyperC|ard" the|
|000020f0| 6e 0d 61 6e 73 77 65 72 | 20 22 41 72 65 20 79 6f |n.answer| "Are yo|
|00002100| 75 20 73 75 72 65 20 79 | 6f 75 20 77 61 6e 74 20 |u sure y|ou want |
|00002110| 74 6f 20 71 75 69 74 20 | 4c 61 62 48 65 6c 70 65 |to quit |LabHelpe|
|00002120| 72 3f 22 20 77 69 74 68 | 20 22 43 61 6e 63 65 6c |r?" with| "Cancel|
|00002130| 22 20 6f 72 20 22 51 75 | 69 74 22 0d 69 66 20 69 |" or "Qu|it".if i|
|00002140| 74 20 69 73 20 22 43 61 | 6e 63 65 6c 22 20 74 68 |t is "Ca|ncel" th|
|00002150| 65 6e 20 65 78 69 74 20 | 64 6f 4d 65 6e 75 0d 65 |en exit |doMenu.e|
|00002160| 6e 64 20 69 66 0d 70 61 | 73 73 20 64 6f 4d 65 6e |nd if.pa|ss doMen|
|00002170| 75 0d 65 6e 64 20 64 6f | 4d 65 6e 75 0d 0d 6f 6e |u.end do|Menu..on|
|00002180| 20 69 64 6c 65 0d 69 66 | 20 74 68 65 72 65 20 69 | idle.if| there i|
|00002190| 73 20 61 20 77 69 6e 64 | 6f 77 20 22 74 69 6d 65 |s a wind|ow "time|
|000021a0| 22 20 74 68 65 6e 0d 69 | 66 20 74 68 65 20 73 68 |" then.i|f the sh|
|000021b0| 6f 72 74 20 74 69 6d 65 | 20 ad 20 74 68 65 20 74 |ort time| . the t|
|000021c0| 65 78 74 20 6f 66 20 77 | 69 6e 64 6f 77 20 22 74 |ext of w|indow "t|
|000021d0| 69 6d 65 22 20 74 68 65 | 6e 0d 73 65 74 20 74 68 |ime" the|n.set th|
|000021e0| 65 20 74 65 78 74 20 6f | 66 20 77 69 6e 64 6f 77 |e text o|f window|
|000021f0| 20 22 74 69 6d 65 22 20 | 74 6f 20 74 68 65 20 73 | "time" |to the s|
|00002200| 68 6f 72 74 20 74 69 6d | 65 0d 65 6e 64 20 69 66 |hort tim|e.end if|
|00002210| 0d 65 6e 64 20 69 66 0d | 69 66 20 74 68 65 72 65 |.end if.|if there|
|00002220| 20 69 73 20 61 20 77 69 | 6e 64 6f 77 20 70 72 6f | is a wi|ndow pro|
|00002230| 6d 70 74 6f 69 64 20 74 | 68 65 6e 20 63 6c 6f 73 |mptoid t|hen clos|
|00002240| 65 20 77 69 6e 64 6f 77 | 20 70 72 6f 6d 70 74 6f |e window| prompto|
|00002250| 69 64 0d 73 65 74 20 63 | 61 6e 74 41 62 6f 72 74 |id.set c|antAbort|
|00002260| 20 6f 66 20 74 68 69 73 | 20 73 74 61 63 6b 20 74 | of this| stack t|
|00002270| 6f 20 74 72 75 65 0d 73 | 65 74 20 63 61 6e 74 50 |o true.s|et cantP|
|00002280| 65 65 6b 20 6f 66 20 74 | 68 69 73 20 73 74 61 63 |eek of t|his stac|
|00002290| 6b 20 74 6f 20 74 72 75 | 65 0d 73 65 74 20 63 61 |k to tru|e.set ca|
|000022a0| 6e 74 44 65 6c 65 74 65 | 20 6f 66 20 74 68 69 73 |ntDelete| of this|
|000022b0| 20 73 74 61 63 6b 20 74 | 6f 20 74 72 75 65 0d 70 | stack t|o true.p|
|000022c0| 61 73 73 20 69 64 6c 65 | 0d 65 6e 64 20 69 64 6c |ass idle|.end idl|
|000022d0| 65 0d 0d 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |e..*****|********|
|000022e0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|000022f0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00002300| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00002310| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 0d 2a 2a 2a 2a 2a |********|**.*****|
|00002320| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00002330| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00002340| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00002350| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00002360| 2a 2a 0d 6f 6e 20 63 48 | 43 69 6e 73 74 61 6c 6c |**.on cH|Cinstall|
|00002370| 20 64 65 70 74 68 0d 73 | 65 74 20 63 75 72 73 6f | depth.s|et curso|
|00002380| 72 20 74 6f 20 62 75 73 | 79 0d 69 66 20 63 68 65 |r to bus|y.if che|
|00002390| 63 6b 45 6e 76 69 72 6f | 6e 28 64 65 70 74 68 29 |ckEnviro|n(depth)|
|000023a0| 20 69 73 20 6e 6f 74 20 | 22 4f 4b 22 20 74 68 65 | is not |"OK" the|
|000023b0| 6e 0d 67 6f 20 48 6f 6d | 65 0d 67 65 74 48 6f 6d |n.go Hom|e.getHom|
|000023c0| 65 49 6e 66 6f 0d 65 78 | 69 74 20 74 6f 20 48 79 |eInfo.ex|it to Hy|
|000023d0| 70 65 72 43 61 72 64 0d | 65 6e 64 20 69 66 0d 65 |perCard.|end if.e|
|000023e0| 6e 64 20 63 48 43 69 6e | 73 74 61 6c 6c 0d 0d 66 |nd cHCin|stall..f|
|000023f0| 75 6e 63 74 69 6f 6e 20 | 63 68 65 63 6b 45 6e 76 |unction |checkEnv|
|00002400| 69 72 6f 6e 20 54 68 65 | 44 65 70 74 68 0d 70 75 |iron The|Depth.pu|
|00002410| 74 20 4d 61 78 44 65 70 | 74 68 28 29 20 69 6e 74 |t MaxDep|th() int|
|00002420| 6f 20 4d 78 44 65 70 74 | 68 0d 69 66 20 54 68 65 |o MxDept|h.if The|
|00002430| 44 65 70 74 68 20 69 73 | 20 65 6d 70 74 79 20 74 |Depth is| empty t|
|00002440| 68 65 6e 20 70 75 74 20 | 4d 78 44 65 70 74 68 20 |hen put |MxDepth |
|00002450| 69 6e 74 6f 20 54 68 65 | 44 65 70 74 68 0d 65 6c |into The|Depth.el|
|00002460| 73 65 20 70 75 74 20 4d | 69 6e 20 28 4d 78 44 65 |se put M|in (MxDe|
|00002470| 70 74 68 2c 54 68 65 44 | 65 70 74 68 29 20 69 6e |pth,TheD|epth) in|
|00002480| 74 6f 20 54 68 65 44 65 | 70 74 68 0d 70 75 74 20 |to TheDe|pth.put |
|00002490| 74 68 65 20 68 65 61 70 | 53 70 61 63 65 20 69 6e |the heap|Space in|
|000024a0| 74 6f 20 54 68 65 48 65 | 61 70 53 70 61 63 65 0d |to TheHe|apSpace.|
|000024b0| 70 75 74 20 65 6d 70 74 | 79 20 69 6e 74 6f 20 6f |put empt|y into o|
|000024c0| 6e 63 65 0d 72 65 70 65 | 61 74 20 77 68 69 6c 65 |nce.repe|at while|
|000024d0| 20 54 68 65 44 65 70 74 | 68 20 b3 20 34 20 6f 72 | TheDept|h . 4 or|
|000024e0| 20 6f 6e 63 65 20 69 73 | 20 65 6d 70 74 79 0d 70 | once is| empty.p|
|000024f0| 75 74 20 32 2a 54 68 65 | 44 65 70 74 68 2a 28 77 |ut 2*The|Depth*(w|
|00002500| 69 64 74 68 20 6f 66 20 | 74 68 69 73 20 63 64 20 |idth of |this cd |
|00002510| 2a 20 68 65 69 67 68 74 | 20 6f 66 20 74 68 69 73 |* height| of this|
|00002520| 20 63 64 29 20 44 49 56 | 20 38 c2 0d 2b 20 33 35 | cd) DIV| 8..+ 35|
|00002530| 30 30 30 20 69 6e 74 6f | 20 52 65 71 53 69 7a 65 |000 into| ReqSize|
|00002540| 0d 69 66 20 54 68 65 48 | 65 61 70 53 70 61 63 65 |.if TheH|eapSpace|
|00002550| 20 3c 20 52 65 71 53 69 | 7a 65 20 74 68 65 6e 0d | < ReqSi|ze then.|
|00002560| 69 66 20 6f 6e 63 65 20 | 69 73 20 65 6d 70 74 79 |if once |is empty|
|00002570| 20 74 68 65 6e 0d 65 72 | 72 4d 65 6d 6f 72 79 20 | then.er|rMemory |
|00002580| 54 68 65 44 65 70 74 68 | 2c 52 65 71 53 69 7a 65 |TheDepth|,ReqSize|
|00002590| 0d 65 6e 64 20 69 66 0d | 65 6c 73 65 0d 69 66 20 |.end if.|else.if |
|000025a0| 6f 6e 63 65 20 69 73 20 | 6e 6f 74 20 65 6d 70 74 |once is |not empt|
|000025b0| 79 0d 74 68 65 6e 20 69 | 66 20 6e 6f 74 20 77 61 |y.then i|f not wa|
|000025c0| 72 6e 44 65 70 74 68 28 | 54 68 65 44 65 70 74 68 |rnDepth(|TheDepth|
|000025d0| 29 20 74 68 65 6e 20 72 | 65 74 75 72 6e 20 65 6d |) then r|eturn em|
|000025e0| 70 74 79 0d 69 66 20 54 | 68 65 44 65 70 74 68 20 |pty.if T|heDepth |
|000025f0| 3c 20 34 20 74 68 65 6e | 20 65 72 72 42 69 74 44 |< 4 then| errBitD|
|00002600| 65 70 74 68 0d 69 66 20 | 54 68 65 48 65 61 70 53 |epth.if |TheHeapS|
|00002610| 70 61 63 65 20 3c 20 52 | 65 71 53 69 7a 65 2b 39 |pace < R|eqSize+9|
|00002620| 32 31 36 30 0d 74 68 65 | 6e 20 65 72 72 4d 65 6d |2160.the|n errMem|
|00002630| 6f 72 79 20 54 68 65 44 | 65 70 74 68 2c 52 65 71 |ory TheD|epth,Req|
|00002640| 53 69 7a 65 2c 54 72 75 | 65 0d 69 66 20 73 74 61 |Size,Tru|e.if sta|
|00002650| 63 6b 41 63 74 69 76 61 | 74 65 28 54 68 65 44 65 |ckActiva|te(TheDe|
|00002660| 70 74 68 29 20 69 73 20 | 6e 6f 74 20 65 6d 70 74 |pth) is |not empt|
|00002670| 79 0d 74 68 65 6e 20 65 | 72 72 43 6f 6c 6f 72 0d |y.then e|rrColor.|
|00002680| 72 65 74 75 72 6e 20 22 | 4f 4b 22 0d 65 6e 64 20 |return "|OK".end |
|00002690| 69 66 0d 70 75 74 20 54 | 72 75 65 20 69 6e 74 6f |if.put T|rue into|
|000026a0| 20 6f 6e 63 65 0d 70 75 | 74 20 70 72 65 76 44 65 | once.pu|t prevDe|
|000026b0| 70 74 68 28 54 68 65 44 | 65 70 74 68 29 20 69 6e |pth(TheD|epth) in|
|000026c0| 74 6f 20 54 68 65 44 65 | 70 74 68 0d 65 6e 64 20 |to TheDe|pth.end |
|000026d0| 72 65 70 65 61 74 0d 65 | 6e 64 20 63 68 65 63 6b |repeat.e|nd check|
|000026e0| 45 6e 76 69 72 6f 6e 0d | 0d 66 75 6e 63 74 69 6f |Environ.|.functio|
|000026f0| 6e 20 70 72 65 76 44 65 | 70 74 68 20 64 65 70 74 |n prevDe|pth dept|
|00002700| 68 0d 69 66 20 64 65 70 | 74 68 20 3e 20 32 34 20 |h.if dep|th > 24 |
|00002710| 74 68 65 6e 20 72 65 74 | 75 72 6e 20 32 34 0d 69 |then ret|urn 24.i|
|00002720| 66 20 64 65 70 74 68 20 | 3e 20 31 36 20 74 68 65 |f depth |> 16 the|
|00002730| 6e 20 72 65 74 75 72 6e | 20 31 36 0d 69 66 20 64 |n return| 16.if d|
|00002740| 65 70 74 68 20 3e 20 38 | 20 74 68 65 6e 20 72 65 |epth > 8| then re|
|00002750| 74 75 72 6e 20 38 0d 69 | 66 20 64 65 70 74 68 20 |turn 8.i|f depth |
|00002760| 3e 20 34 20 74 68 65 6e | 20 72 65 74 75 72 6e 20 |> 4 then| return |
|00002770| 34 0d 72 65 74 75 72 6e | 20 31 0d 65 6e 64 20 70 |4.return| 1.end p|
|00002780| 72 65 76 44 65 70 74 68 | 0d 0d 6f 6e 20 65 72 72 |revDepth|..on err|
|00002790| 4d 65 6d 6f 72 79 20 54 | 68 65 44 65 70 74 68 2c |Memory T|heDepth,|
|000027a0| 50 61 72 74 69 74 69 6f | 6e 53 69 7a 65 2c 53 6f |Partitio|nSize,So|
|000027b0| 66 74 0d 70 75 74 20 74 | 68 65 20 73 68 6f 72 74 |ft.put t|he short|
|000027c0| 20 6e 61 6d 65 20 6f 66 | 20 48 79 70 65 72 43 61 | name of| HyperCa|
|000027d0| 72 64 20 69 6e 74 6f 20 | 54 68 65 48 79 70 65 72 |rd into |TheHyper|
|000027e0| 43 61 72 64 0d 69 66 20 | 73 6f 66 74 20 69 73 20 |Card.if |soft is |
|000027f0| 6e 6f 74 20 65 6d 70 74 | 79 20 74 68 65 6e 0d 61 |not empt|y then.a|
|00002800| 6e 73 77 65 72 20 22 4d | 65 6d 6f 72 79 20 69 73 |nswer "M|emory is|
|00002810| 20 6c 6f 77 2e 20 53 6f | 6d 65 20 6f 70 65 72 61 | low. So|me opera|
|00002820| 74 69 6f 6e 73 20 6d 61 | 79 20 6e 6f 74 20 77 6f |tions ma|y not wo|
|00002830| 72 6b 2e 22 20 26 26 c2 | 0d 22 59 6f 75 20 73 68 |rk." &&.|."You sh|
|00002840| 6f 75 6c 64 20 69 6e 63 | 72 65 61 73 65 20 74 68 |ould inc|rease th|
|00002850| 65 20 6d 65 6d 6f 72 79 | 20 73 69 7a 65 20 6f 66 |e memory| size of|
|00002860| 22 20 26 26 20 54 68 65 | 48 79 70 65 72 43 61 72 |" && The|HyperCar|
|00002870| 64 20 26 26 c2 0d 22 62 | 79 20 61 74 20 6c 65 61 |d &&.."b|y at lea|
|00002880| 73 74 20 39 30 4b 2e 22 | 0d 65 6c 73 65 0d 70 75 |st 90K."|.else.pu|
|00002890| 74 20 28 50 61 72 74 69 | 74 69 6f 6e 53 69 7a 65 |t (Parti|tionSize|
|000028a0| 20 44 49 56 20 31 30 32 | 34 29 20 26 20 22 4b 22 | DIV 102|4) & "K"|
|000028b0| 20 69 6e 74 6f 20 50 61 | 72 74 69 74 69 6f 6e 53 | into Pa|rtitionS|
|000028c0| 69 7a 65 0d 70 75 74 20 | 28 74 68 65 20 68 65 61 |ize.put |(the hea|
|000028d0| 70 53 70 61 63 65 20 44 | 49 56 20 31 30 32 34 29 |pSpace D|IV 1024)|
|000028e0| 20 26 20 22 4b 22 20 69 | 6e 74 6f 20 68 65 61 70 | & "K" i|nto heap|
|000028f0| 53 69 7a 65 0d 61 6e 73 | 77 65 72 20 50 61 72 74 |Size.ans|wer Part|
|00002900| 69 74 69 6f 6e 53 69 7a | 65 20 26 26 20 22 65 78 |itionSiz|e && "ex|
|00002910| 74 72 61 20 6d 65 6d 6f | 72 79 20 69 73 20 72 65 |tra memo|ry is re|
|00002920| 71 75 69 72 65 64 20 74 | 6f 20 72 75 6e 20 d2 22 |quired t|o run ."|
|00002930| 20 26 c2 0d 74 68 65 20 | 73 68 6f 72 74 20 6e 61 | &..the |short na|
|00002940| 6d 65 20 6f 66 20 74 68 | 69 73 20 73 74 61 63 6b |me of th|is stack|
|00002950| 20 26 20 22 d3 20 69 6e | 22 20 26 26 20 54 68 65 | & ". in|" && The|
|00002960| 44 65 70 74 68 20 26 20 | c2 0d 22 62 69 74 20 6d |Depth & |.."bit m|
|00002970| 6f 64 65 2c 20 62 75 74 | 20 6f 6e 6c 79 22 20 26 |ode, but| only" &|
|00002980| 26 20 68 65 61 70 53 69 | 7a 65 20 26 26 20 22 69 |& heapSi|ze && "i|
|00002990| 73 20 63 75 72 72 65 6e | 74 6c 79 20 73 70 61 72 |s curren|tly spar|
|000029a0| 65 2e 22 20 26 26 c2 0d | 22 49 6e 63 72 65 61 73 |e." &&..|"Increas|
|000029b0| 65 20 74 68 65 20 6d 65 | 6d 6f 72 79 20 73 69 7a |e the me|mory siz|
|000029c0| 65 20 6f 66 22 20 26 26 | 20 54 68 65 48 79 70 65 |e of" &&| TheHype|
|000029d0| 72 43 61 72 64 20 26 20 | 22 2e 22 0d 65 6e 64 20 |rCard & |".".end |
|000029e0| 69 66 0d 65 6e 64 20 65 | 72 72 4d 65 6d 6f 72 79 |if.end e|rrMemory|
|000029f0| 0d 0d 66 75 6e 63 74 69 | 6f 6e 20 77 61 72 6e 44 |..functi|on warnD|
|00002a00| 65 70 74 68 20 64 65 70 | 74 68 0d 61 6e 73 77 65 |epth dep|th.answe|
|00002a10| 72 20 22 44 6f 20 79 6f | 75 20 77 61 6e 74 20 74 |r "Do yo|u want t|
|00002a20| 6f 20 63 6f 6e 74 69 6e | 75 65 20 69 6e 22 20 26 |o contin|ue in" &|
|00002a30| 26 20 64 65 70 74 68 20 | 26 20 22 62 69 74 20 6d |& depth |& "bit m|
|00002a40| 6f 64 65 3f 22 c2 0d 77 | 69 74 68 20 22 4e 6f 22 |ode?"..w|ith "No"|
|00002a50| 20 6f 72 20 22 59 65 73 | 22 0d 72 65 74 75 72 6e | or "Yes|".return|
|00002a60| 20 69 74 20 69 73 20 22 | 59 65 73 22 0d 65 6e 64 | it is "|Yes".end|
|00002a70| 20 77 61 72 6e 44 65 70 | 74 68 0d 0d 66 75 6e 63 | warnDep|th..func|
|00002a80| 74 69 6f 6e 20 6c 61 73 | 74 49 74 65 6d 20 54 68 |tion las|tItem Th|
|00002a90| 65 44 65 6c 69 6d 69 74 | 65 72 2c 53 74 72 69 6e |eDelimit|er,Strin|
|00002aa0| 67 0d 69 66 20 54 68 65 | 44 65 6c 69 6d 69 74 65 |g.if The|Delimite|
|00002ab0| 72 20 69 73 20 69 6e 20 | 53 74 72 69 6e 67 0d 74 |r is in |String.t|
|00002ac0| 68 65 6e 20 70 75 74 20 | 6c 61 73 74 49 74 65 6d |hen put |lastItem|
|00002ad0| 28 54 68 65 44 65 6c 69 | 6d 69 74 65 72 2c 63 68 |(TheDeli|miter,ch|
|00002ae0| 61 72 20 6f 66 66 73 65 | 74 28 54 68 65 44 65 6c |ar offse|t(TheDel|
|00002af0| 69 6d 69 74 65 72 2c 53 | 74 72 69 6e 67 29 20 2b |imiter,S|tring) +|
|00002b00| 20 31 20 74 6f 20 6c 65 | 6e 67 74 68 28 53 74 72 | 1 to le|ngth(Str|
|00002b10| 69 6e 67 29 20 6f 66 20 | 53 74 72 69 6e 67 29 20 |ing) of |String) |
|00002b20| 69 6e 74 6f 20 53 74 72 | 69 6e 67 0d 72 65 74 75 |into Str|ing.retu|
|00002b30| 72 6e 20 53 74 72 69 6e | 67 0d 65 6e 64 20 6c 61 |rn Strin|g.end la|
|00002b40| 73 74 49 74 65 6d 0d 0d | 6f 6e 20 65 72 72 42 69 |stItem..|on errBi|
|00002b50| 74 44 65 70 74 68 0d 61 | 6e 73 77 65 72 20 22 54 |tDepth.a|nswer "T|
|00002b60| 68 69 73 20 73 74 61 63 | 6b 20 72 65 71 75 69 72 |his stac|k requir|
|00002b70| 65 73 20 61 20 63 6f 6c | 6f 72 20 73 79 73 74 65 |es a col|or syste|
|00002b80| 6d 20 73 65 74 20 74 6f | 20 61 74 20 6c 65 61 73 |m set to| at leas|
|00002b90| 74 20 31 36 20 63 6f 6c | 6f 72 73 22 20 26 26 20 |t 16 col|ors" && |
|00002ba0| c2 0d 22 28 34 20 62 69 | 74 2d 64 65 70 74 68 29 |.."(4 bi|t-depth)|
|00002bb0| 20 74 6f 20 64 69 73 70 | 6c 61 79 20 63 6f 6c 6f | to disp|lay colo|
|00002bc0| 72 2e 22 0d 65 6e 64 20 | 65 72 72 42 69 74 44 65 |r.".end |errBitDe|
|00002bd0| 70 74 68 0d 0d 6f 6e 20 | 63 6f 6c 6f 72 69 7a 65 |pth..on |colorize|
|00002be0| 48 43 0d 67 6c 6f 62 61 | 6c 20 67 4f 4b 54 6f 43 |HC.globa|l gOKToC|
|00002bf0| 6f 6c 6f 72 69 7a 65 2c | 20 67 48 43 6f 70 74 69 |olorize,| gHCopti|
|00002c00| 6f 6e 73 0d 69 66 20 67 | 4f 4b 54 6f 43 6f 6c 6f |ons.if g|OKToColo|
|00002c10| 72 69 7a 65 20 69 73 20 | 65 6d 70 74 79 20 61 6e |rize is |empty an|
|00002c20| 64 20 67 48 43 6f 70 74 | 69 6f 6e 73 20 69 73 20 |d gHCopt|ions is |
|00002c30| 6e 6f 74 20 65 6d 70 74 | 79 0d 74 68 65 6e 20 70 |not empt|y.then p|
|00002c40| 61 73 73 20 63 6f 6c 6f | 72 69 7a 65 48 43 0d 65 |ass colo|rizeHC.e|
|00002c50| 6e 64 20 63 6f 6c 6f 72 | 69 7a 65 48 43 0d 0d 66 |nd color|izeHC..f|
|00002c60| 75 6e 63 74 69 6f 6e 20 | 73 74 61 63 6b 41 63 74 |unction |stackAct|
|00002c70| 69 76 61 74 65 20 64 65 | 70 74 68 0d 67 6c 6f 62 |ivate de|pth.glob|
|00002c80| 61 6c 20 67 4f 4b 54 6f | 43 6f 6c 6f 72 69 7a 65 |al gOKTo|Colorize|
|00002c90| 2c 20 67 48 43 64 65 70 | 74 68 0d 70 75 74 20 65 |, gHCdep|th.put e|
|00002ca0| 6d 70 74 79 20 69 6e 74 | 6f 20 67 4f 4b 54 6f 43 |mpty int|o gOKToC|
|00002cb0| 6f 6c 6f 72 69 7a 65 0d | 63 6f 6c 6f 72 69 7a 65 |olorize.|colorize|
|00002cc0| 48 43 20 22 69 6e 73 74 | 61 6c 6c 22 2c 64 65 70 |HC "inst|all",dep|
|00002cd0| 74 68 0d 69 66 20 74 68 | 65 20 72 65 73 75 6c 74 |th.if th|e result|
|00002ce0| 20 69 73 20 65 6d 70 74 | 79 0d 74 68 65 6e 20 63 | is empt|y.then c|
|00002cf0| 6f 6c 6f 72 69 7a 65 48 | 43 20 22 61 73 73 69 67 |olorizeH|C "assig|
|00002d00| 6e 54 6f 46 72 6f 6e 74 | 22 0d 70 75 74 20 74 68 |nToFront|".put th|
|00002d10| 65 20 72 65 73 75 6c 74 | 20 69 6e 74 6f 20 67 4f |e result| into gO|
|00002d20| 4b 54 6f 43 6f 6c 6f 72 | 69 7a 65 0d 70 75 74 20 |KToColor|ize.put |
|00002d30| 64 65 70 74 68 20 69 6e | 74 6f 20 67 48 43 64 65 |depth in|to gHCde|
|00002d40| 70 74 68 0d 72 65 74 75 | 72 6e 20 67 4f 4b 54 6f |pth.retu|rn gOKTo|
|00002d50| 43 6f 6c 6f 72 69 7a 65 | 0d 65 6e 64 20 73 74 61 |Colorize|.end sta|
|00002d60| 63 6b 41 63 74 69 76 61 | 74 65 0d 0d 6f 6e 20 65 |ckActiva|te..on e|
|00002d70| 72 72 43 6f 6c 6f 72 0d | 67 6c 6f 62 61 6c 20 67 |rrColor.|global g|
|00002d80| 4f 4b 54 6f 43 6f 6c 6f | 72 69 7a 65 0d 61 6e 73 |OKToColo|rize.ans|
|00002d90| 77 65 72 20 22 57 61 72 | 6e 69 6e 67 3a 20 54 68 |wer "War|ning: Th|
|00002da0| 65 20 65 6e 76 69 72 6f | 6e 6d 65 6e 74 20 74 68 |e enviro|nment th|
|00002db0| 69 73 20 73 74 61 63 6b | 20 69 73 20 63 75 72 72 |is stack| is curr|
|00002dc0| 65 6e 74 6c 79 20 72 75 | 6e 6e 69 6e 67 20 69 6e |ently ru|nning in|
|00002dd0| 22 20 26 26 20 c2 0d 22 | 69 73 20 75 6e 61 62 6c |" && .."|is unabl|
|00002de0| 65 20 74 6f 20 73 75 70 | 70 6f 72 74 20 63 6f 6c |e to sup|port col|
|00002df0| 6f 72 2e 22 20 26 20 72 | 65 74 75 72 6e 20 26 20 |or." & r|eturn & |
|00002e00| 22 52 65 61 73 6f 6e 3a | 22 20 26 26 20 67 4f 4b |"Reason:|" && gOK|
|00002e10| 54 6f 43 6f 6c 6f 72 69 | 7a 65 0d 65 6e 64 20 65 |ToColori|ze.end e|
|00002e20| 72 72 43 6f 6c 6f 72 0d | 0d 6f 6e 20 63 48 43 64 |rrColor.|.on cHCd|
|00002e30| 69 73 70 6f 73 65 0d 67 | 6c 6f 62 61 6c 20 67 4f |ispose.g|lobal gO|
|00002e40| 4b 54 6f 43 6f 6c 6f 72 | 69 7a 65 2c 20 67 48 43 |KToColor|ize, gHC|
|00002e50| 64 65 70 74 68 0d 69 66 | 20 6e 6f 74 20 74 68 65 |depth.if| not the|
|00002e60| 20 6c 6f 63 6b 53 63 72 | 65 65 6e 20 74 68 65 6e | lockScr|een then|
|00002e70| 20 6c 6f 63 6b 20 73 63 | 72 65 65 6e 0d 43 6f 6c | lock sc|reen.Col|
|00002e80| 6f 72 69 7a 65 48 43 20 | 22 44 69 73 70 6f 73 65 |orizeHC |"Dispose|
|00002e90| 22 0d 69 66 20 74 68 65 | 20 72 65 73 75 6c 74 20 |".if the| result |
|00002ea0| 69 73 20 6e 6f 74 20 65 | 6d 70 74 79 20 74 68 65 |is not e|mpty the|
|00002eb0| 6e 20 61 6e 73 77 65 72 | 20 74 68 65 20 72 65 73 |n answer| the res|
|00002ec0| 75 6c 74 0d 70 75 74 20 | 22 44 69 73 61 62 6c 65 |ult.put |"Disable|
|00002ed0| 64 22 20 69 6e 74 6f 20 | 67 4f 4b 54 6f 43 6f 6c |d" into |gOKToCol|
|00002ee0| 6f 72 69 7a 65 0d 70 75 | 74 20 31 20 69 6e 74 6f |orize.pu|t 1 into|
|00002ef0| 20 67 48 43 64 65 70 74 | 68 0d 65 6e 64 20 63 48 | gHCdept|h.end cH|
|00002f00| 43 64 69 73 70 6f 73 65 | 0d 0d 6f 6e 20 63 48 43 |Cdispose|..on cHC|
|00002f10| 73 68 6f 77 57 69 6e 64 | 6f 77 73 0d 67 6c 6f 62 |showWind|ows.glob|
|00002f20| 61 6c 20 67 48 43 77 69 | 6e 64 6f 77 73 0d 69 66 |al gHCwi|ndows.if|
|00002f30| 20 67 48 43 77 69 6e 64 | 6f 77 73 20 69 73 20 6e | gHCwind|ows is n|
|00002f40| 6f 74 20 65 6d 70 74 79 | 20 74 68 65 6e 0d 69 66 |ot empty| then.if|
|00002f50| 20 74 68 65 20 6c 6f 63 | 6b 53 63 72 65 65 6e 20 | the loc|kScreen |
|00002f60| 74 68 65 6e 20 63 48 43 | 62 72 65 61 6b 53 63 72 |then cHC|breakScr|
|00002f70| 65 65 6e 4c 6f 63 6b 0d | 72 65 70 65 61 74 20 77 |eenLock.|repeat w|
|00002f80| 69 74 68 20 69 3d 31 20 | 74 6f 20 74 68 65 20 6e |ith i=1 |to the n|
|00002f90| 75 6d 62 65 72 20 6f 66 | 20 69 74 65 6d 73 20 69 |umber of| items i|
|00002fa0| 6e 20 67 48 43 77 69 6e | 64 6f 77 73 0d 67 65 74 |n gHCwin|dows.get|
|00002fb0| 20 6c 61 73 74 49 74 65 | 6d 20 28 22 3a 22 2c 20 | lastIte|m (":", |
|00002fc0| 69 74 65 6d 20 69 20 6f | 66 20 67 48 43 77 69 6e |item i o|f gHCwin|
|00002fd0| 64 6f 77 73 29 0d 69 66 | 20 74 68 65 72 65 20 69 |dows).if| there i|
|00002fe0| 73 20 61 20 77 69 6e 64 | 6f 77 20 69 74 20 74 68 |s a wind|ow it th|
|00002ff0| 65 6e 20 73 68 6f 77 20 | 77 69 6e 64 6f 77 20 69 |en show |window i|
|00003000| 74 0d 65 6c 73 65 20 61 | 6e 73 77 65 72 20 22 63 |t.else a|nswer "c|
|00003010| 48 43 73 68 6f 77 57 69 | 6e 64 6f 77 73 3a 20 73 |HCshowWi|ndows: s|
|00003020| 65 65 6d 20 74 6f 20 68 | 61 76 65 20 6c 6f 73 74 |eem to h|ave lost|
|00003030| 20 77 69 6e 64 6f 77 22 | 20 26 26 20 69 74 0d 65 | window"| && it.e|
|00003040| 6e 64 20 72 65 70 65 61 | 74 0d 65 6e 64 20 69 66 |nd repea|t.end if|
|00003050| 0d 65 6e 64 20 63 48 43 | 73 68 6f 77 57 69 6e 64 |.end cHC|showWind|
|00003060| 6f 77 73 0d 0d 6f 6e 20 | 63 48 43 6b 69 6c 6c 57 |ows..on |cHCkillW|
|00003070| 69 6e 64 6f 77 73 0d 67 | 6c 6f 62 61 6c 20 67 48 |indows.g|lobal gH|
|00003080| 43 77 69 6e 64 6f 77 73 | 0d 72 65 70 65 61 74 20 |Cwindows|.repeat |
|00003090| 77 69 74 68 20 69 3d 31 | 20 74 6f 20 74 68 65 20 |with i=1| to the |
|000030a0| 6e 75 6d 62 65 72 20 6f | 66 20 69 74 65 6d 73 20 |number o|f items |
|000030b0| 69 6e 20 67 48 43 77 69 | 6e 64 6f 77 73 0d 67 65 |in gHCwi|ndows.ge|
|000030c0| 74 20 6c 61 73 74 49 74 | 65 6d 20 28 22 3a 22 2c |t lastIt|em (":",|
|000030d0| 20 69 74 65 6d 20 69 20 | 6f 66 20 67 48 43 77 69 | item i |of gHCwi|
|000030e0| 6e 64 6f 77 73 29 0d 69 | 66 20 74 68 65 72 65 20 |ndows).i|f there |
|000030f0| 69 73 20 61 20 77 69 6e | 64 6f 77 20 69 74 20 74 |is a win|dow it t|
|00003100| 68 65 6e 20 63 6c 6f 73 | 65 20 77 69 6e 64 6f 77 |hen clos|e window|
|00003110| 20 69 74 0d 65 6e 64 20 | 72 65 70 65 61 74 0d 70 | it.end |repeat.p|
|00003120| 75 74 20 65 6d 70 74 79 | 20 69 6e 74 6f 20 67 48 |ut empty| into gH|
|00003130| 43 77 69 6e 64 6f 77 73 | 0d 65 6e 64 20 63 48 43 |Cwindows|.end cHC|
|00003140| 6b 69 6c 6c 57 69 6e 64 | 6f 77 73 0d 0d 66 75 6e |killWind|ows..fun|
|00003150| 63 74 69 6f 6e 20 63 48 | 43 4f 70 74 69 6f 6e 73 |ction cH|COptions|
|00003160| 0d 72 65 74 75 72 6e 20 | 22 48 43 63 6f 6c 6f 72 |.return |"HCcolor|
|00003170| 69 7a 65 2c 48 43 75 6e | 43 6f 6c 6f 72 69 7a 65 |ize,HCun|Colorize|
|00003180| 2c 48 43 62 57 68 69 74 | 65 2c 48 43 75 6e 42 57 |,HCbWhit|e,HCunBW|
|00003190| 68 69 74 65 2c 48 43 67 | 72 61 70 68 69 63 2c 22 |hite,HCg|raphic,"|
|000031a0| 20 26 c2 0d 22 48 43 75 | 6e 47 72 61 70 68 69 63 | &.."HCu|nGraphic|
|000031b0| 2c 6e 6f 45 72 72 6f 72 | 73 2c 66 6f 72 63 65 43 |,noError|s,forceC|
|000031c0| 6f 6c 6f 72 2c 66 6f 72 | 63 65 42 57 2c 57 69 6e |olor,for|ceBW,Win|
|000031d0| 64 6f 77 73 2c 6c 65 61 | 76 65 43 75 72 73 6f 72 |dows,lea|veCursor|
|000031e0| 2c 22 20 26 c2 0d 22 6e | 6f 56 69 73 75 61 6c 73 |," &.."n|oVisuals|
|000031f0| 2c 6e 6f 56 69 73 75 61 | 6c 73 49 6e 43 6f 6c 6f |,noVisua|lsInColo|
|00003200| 72 2c 64 62 43 6f 6c 6f | 72 69 7a 65 48 43 2c 48 |r,dbColo|rizeHC,H|
|00003210| 43 70 72 65 47 72 61 70 | 68 69 63 2c 48 43 69 6e |CpreGrap|hic,HCin|
|00003220| 69 74 22 0d 65 6e 64 20 | 63 48 43 4f 70 74 69 6f |it".end |cHCOptio|
|00003230| 6e 73 0d 0d 6f 6e 20 73 | 65 74 4f 70 74 69 6f 6e |ns..on s|etOption|
|00003240| 73 20 6f 70 74 69 6f 6e | 73 0d 67 6c 6f 62 61 6c |s option|s.global|
|00003250| 20 67 48 43 4f 70 74 69 | 6f 6e 73 0d 70 75 74 20 | gHCOpti|ons.put |
|00003260| 22 30 30 30 30 30 30 30 | 30 30 30 30 30 30 30 30 |"0000000|00000000|
|00003270| 30 22 20 69 6e 74 6f 20 | 67 48 43 4f 70 74 69 6f |0" into |gHCOptio|
|00003280| 6e 73 0d 69 66 20 6f 70 | 74 69 6f 6e 73 20 69 73 |ns.if op|tions is|
|00003290| 20 65 6d 70 74 79 20 74 | 68 65 6e 0d 70 75 74 20 | empty t|hen.put |
|000032a0| 22 31 31 22 20 69 6e 74 | 6f 20 63 68 61 72 20 31 |"11" int|o char 1|
|000032b0| 20 74 6f 20 32 20 6f 66 | 20 67 48 43 4f 70 74 69 | to 2 of| gHCOpti|
|000032c0| 6f 6e 73 0d 65 78 69 74 | 20 73 65 74 4f 70 74 69 |ons.exit| setOpti|
|000032d0| 6f 6e 73 0d 65 6e 64 20 | 69 66 0d 70 75 74 20 63 |ons.end |if.put c|
|000032e0| 48 43 4f 70 74 69 6f 6e | 73 28 29 20 69 6e 74 6f |HCOption|s() into|
|000032f0| 20 6b 6e 6f 77 6e 0d 72 | 65 70 65 61 74 20 77 69 | known.r|epeat wi|
|00003300| 74 68 20 69 20 3d 20 31 | 20 74 6f 20 74 68 65 20 |th i = 1| to the |
|00003310| 6e 75 6d 62 65 72 20 6f | 66 20 69 74 65 6d 73 20 |number o|f items |
|00003320| 6f 66 20 6f 70 74 69 6f | 6e 73 0d 67 65 74 20 69 |of optio|ns.get i|
|00003330| 74 65 6d 20 69 20 6f 66 | 20 6f 70 74 69 6f 6e 73 |tem i of| options|
|00003340| 0d 69 66 20 69 74 20 69 | 73 20 6e 6f 74 20 65 6d |.if it i|s not em|
|00003350| 70 74 79 20 74 68 65 6e | 0d 70 75 74 20 46 61 6c |pty then|.put Fal|
|00003360| 73 65 20 69 6e 74 6f 20 | 66 6f 75 6e 64 0d 72 65 |se into |found.re|
|00003370| 70 65 61 74 20 77 69 74 | 68 20 6b 20 3d 20 31 20 |peat wit|h k = 1 |
|00003380| 74 6f 20 74 68 65 20 6e | 75 6d 62 65 72 20 6f 66 |to the n|umber of|
|00003390| 20 69 74 65 6d 73 20 6f | 66 20 6b 6e 6f 77 6e 0d | items o|f known.|
|000033a0| 69 66 20 69 74 20 69 73 | 20 69 74 65 6d 20 6b 20 |if it is| item k |
|000033b0| 6f 66 20 6b 6e 6f 77 6e | 20 74 68 65 6e 0d 70 75 |of known| then.pu|
|000033c0| 74 20 31 20 69 6e 74 6f | 20 63 68 61 72 20 6b 20 |t 1 into| char k |
|000033d0| 6f 66 20 67 48 43 4f 70 | 74 69 6f 6e 73 0d 70 75 |of gHCOp|tions.pu|
|000033e0| 74 20 54 72 75 65 20 69 | 6e 74 6f 20 66 6f 75 6e |t True i|nto foun|
|000033f0| 64 0d 65 78 69 74 20 72 | 65 70 65 61 74 0d 65 6e |d.exit r|epeat.en|
|00003400| 64 20 69 66 0d 65 6e 64 | 20 72 65 70 65 61 74 0d |d if.end| repeat.|
|00003410| 69 66 20 6e 6f 74 20 66 | 6f 75 6e 64 20 74 68 65 |if not f|ound the|
|00003420| 6e 20 61 6e 73 77 65 72 | 20 22 55 6e 6b 6e 6f 77 |n answer| "Unknow|
|00003430| 6e 20 6f 70 74 69 6f 6e | 2e 20 49 67 6e 6f 72 69 |n option|. Ignori|
|00003440| 6e 67 3a 22 20 26 26 20 | 69 74 0d 65 6e 64 20 69 |ng:" && |it.end i|
|00003450| 66 0d 65 6e 64 20 72 65 | 70 65 61 74 0d 69 66 20 |f.end re|peat.if |
|00003460| 63 68 61 72 20 38 20 74 | 6f 20 39 20 6f 66 20 67 |char 8 t|o 9 of g|
|00003470| 48 43 4f 70 74 69 6f 6e | 73 20 69 73 20 22 31 31 |HCOption|s is "11|
|00003480| 22 20 74 68 65 6e 0d 61 | 6e 73 77 65 72 20 22 59 |" then.a|nswer "Y|
|00003490| 6f 75 20 63 61 6e 6e 6f | 74 20 73 65 74 20 62 6f |ou canno|t set bo|
|000034a0| 74 68 20 66 6f 72 63 65 | 43 6f 6c 6f 72 20 61 6e |th force|Color an|
|000034b0| 64 20 66 6f 72 63 65 42 | 57 2e 20 49 67 6e 6f 72 |d forceB|W. Ignor|
|000034c0| 69 6e 67 20 62 6f 74 68 | 21 22 0d 70 75 74 20 22 |ing both|!".put "|
|000034d0| 30 30 22 20 69 6e 74 6f | 20 63 68 61 72 20 38 20 |00" into| char 8 |
|000034e0| 74 6f 20 39 20 6f 66 20 | 67 48 43 4f 70 74 69 6f |to 9 of |gHCOptio|
|000034f0| 6e 73 0d 65 6e 64 20 69 | 66 0d 65 6e 64 20 73 65 |ns.end i|f.end se|
|00003500| 74 4f 70 74 69 6f 6e 73 | 0d 0d 66 75 6e 63 74 69 |tOptions|..functi|
|00003510| 6f 6e 20 63 48 43 63 75 | 72 72 4f 70 74 69 6f 6e |on cHCcu|rrOption|
|00003520| 73 0d 67 6c 6f 62 61 6c | 20 67 48 43 6f 70 74 69 |s.global| gHCopti|
|00003530| 6f 6e 73 0d 70 75 74 20 | 63 48 43 4f 70 74 69 6f |ons.put |cHCOptio|
|00003540| 6e 73 28 29 20 69 6e 74 | 6f 20 6e 61 6d 65 73 0d |ns() int|o names.|
|00003550| 70 75 74 20 65 6d 70 74 | 79 20 69 6e 74 6f 20 72 |put empt|y into r|
|00003560| 65 73 75 6c 74 0d 72 65 | 70 65 61 74 20 77 69 74 |esult.re|peat wit|
|00003570| 68 20 69 20 3d 20 31 20 | 74 6f 20 74 68 65 20 6e |h i = 1 |to the n|
|00003580| 75 6d 62 65 72 20 6f 66 | 20 63 68 61 72 73 20 6f |umber of| chars o|
|00003590| 66 20 67 48 43 6f 70 74 | 69 6f 6e 73 0d 69 66 20 |f gHCopt|ions.if |
|000035a0| 63 68 61 72 20 69 20 6f | 66 20 67 48 43 6f 70 74 |char i o|f gHCopt|
|000035b0| 69 6f 6e 73 20 69 73 20 | 31 0d 74 68 65 6e 20 70 |ions is |1.then p|
|000035c0| 75 74 20 69 74 65 6d 20 | 69 20 6f 66 20 6e 61 6d |ut item |i of nam|
|000035d0| 65 73 20 26 20 22 2c 22 | 20 61 66 74 65 72 20 72 |es & ","| after r|
|000035e0| 65 73 75 6c 74 0d 65 6e | 64 20 72 65 70 65 61 74 |esult.en|d repeat|
|000035f0| 0d 69 66 20 72 65 73 75 | 6c 74 20 69 73 20 6e 6f |.if resu|lt is no|
|00003600| 74 20 65 6d 70 74 79 20 | 74 68 65 6e 20 64 65 6c |t empty |then del|
|00003610| 65 74 65 20 6c 61 73 74 | 20 63 68 61 72 20 6f 66 |ete last| char of|
|00003620| 20 72 65 73 75 6c 74 0d | 73 6f 72 74 20 69 74 65 | result.|sort ite|
|00003630| 6d 73 20 6f 66 20 72 65 | 73 75 6c 74 0d 72 65 74 |ms of re|sult.ret|
|00003640| 75 72 6e 20 72 65 73 75 | 6c 74 0d 65 6e 64 20 63 |urn resu|lt.end c|
|00003650| 48 43 63 75 72 72 4f 70 | 74 69 6f 6e 73 0d 0d 6f |HCcurrOp|tions..o|
|00003660| 6e 20 4f 75 74 4f 66 44 | 61 74 65 20 6e 61 6d 65 |n OutOfD|ate name|
|00003670| 0d 61 6e 73 77 65 72 20 | 22 59 6f 75 20 61 72 65 |.answer |"You are|
|00003680| 20 61 70 70 61 72 65 6e | 74 6c 79 20 75 73 69 6e | apparen|tly usin|
|00003690| 67 20 61 20 70 72 65 2d | 76 65 72 73 69 6f 6e 20 |g a pre-|version |
|000036a0| 31 2e 30 2e 33 20 63 61 | 6c 6c 20 74 6f 22 20 26 |1.0.3 ca|ll to" &|
|000036b0| 26 20 c2 0d 6e 61 6d 65 | 20 26 20 22 2e 20 59 6f |& ..name| & ". Yo|
|000036c0| 75 20 77 69 6c 6c 20 6e | 65 65 64 20 74 6f 20 6d |u will n|eed to m|
|000036d0| 6f 64 69 66 79 20 79 6f | 75 72 20 73 63 72 69 70 |odify yo|ur scrip|
|000036e0| 74 73 20 62 65 66 6f 72 | 65 20 63 6f 6e 74 69 6e |ts befor|e contin|
|000036f0| 75 69 6e 67 2e 22 20 26 | 26 20 c2 0d 22 49 6e 69 |uing." &|& .."Ini|
|00003700| 74 69 61 6c 69 73 61 74 | 69 6f 6e 20 61 62 6f 72 |tialisat|ion abor|
|00003710| 74 65 64 2e 22 0d 65 78 | 69 74 20 74 6f 20 68 79 |ted.".ex|it to hy|
|00003720| 70 65 72 63 61 72 64 0d | 65 6e 64 20 4f 75 74 4f |percard.|end OutO|
|00003730| 66 44 61 74 65 0d 0d 6f | 6e 20 73 74 6f 72 65 53 |fDate..o|n storeS|
|00003740| 74 61 74 65 0d 67 6c 6f | 62 61 6c 20 67 48 43 6f |tate.glo|bal gHCo|
|00003750| 70 74 69 6f 6e 73 2c 67 | 48 43 75 73 65 72 2c 67 |ptions,g|HCuser,g|
|00003760| 48 43 6b 65 70 74 4e 61 | 6d 65 73 0d 67 65 74 20 |HCkeptNa|mes.get |
|00003770| 74 68 65 20 76 61 6c 75 | 65 20 6f 66 20 77 6f 72 |the valu|e of wor|
|00003780| 64 20 32 20 6f 66 20 74 | 68 65 20 6c 6f 6e 67 20 |d 2 of t|he long |
|00003790| 6e 61 6d 65 20 6f 66 20 | 74 68 69 73 20 73 74 61 |name of |this sta|
|000037a0| 63 6b 0d 72 65 70 65 61 | 74 20 77 69 74 68 20 69 |ck.repea|t with i|
|000037b0| 20 3d 20 31 20 74 6f 20 | 74 68 65 20 6e 75 6d 62 | = 1 to |the numb|
|000037c0| 65 72 20 6f 66 20 6c 69 | 6e 65 73 20 6f 66 20 67 |er of li|nes of g|
|000037d0| 48 43 6b 65 70 74 4e 61 | 6d 65 73 0d 69 66 20 6c |HCkeptNa|mes.if l|
|000037e0| 69 6e 65 20 69 20 6f 66 | 20 67 48 43 6b 65 70 74 |ine i of| gHCkept|
|000037f0| 4e 61 6d 65 73 20 69 73 | 20 69 74 20 74 68 65 6e |Names is| it then|
|00003800| 0d 67 65 74 20 22 67 48 | 43 6b 70 75 22 20 26 20 |.get "gH|Ckpu" & |
|00003810| 69 0d 64 6f 20 22 67 6c | 6f 62 61 6c 22 20 26 26 |i.do "gl|obal" &&|
|00003820| 20 69 74 20 26 20 72 65 | 74 75 72 6e 20 26 20 22 | it & re|turn & "|
|00003830| 70 75 74 20 67 48 43 75 | 73 65 72 20 69 6e 74 6f |put gHCu|ser into|
|00003840| 22 20 26 26 20 69 74 0d | 67 65 74 20 22 67 48 43 |" && it.|get "gHC|
|00003850| 6b 70 6f 22 20 26 20 69 | 0d 64 6f 20 22 67 6c 6f |kpo" & i|.do "glo|
|00003860| 62 61 6c 22 20 26 26 20 | 69 74 20 26 20 72 65 74 |bal" && |it & ret|
|00003870| 75 72 6e 20 26 20 22 70 | 75 74 20 67 48 43 6f 70 |urn & "p|ut gHCop|
|00003880| 74 69 6f 6e 73 20 69 6e | 74 6f 22 20 26 26 20 69 |tions in|to" && i|
|00003890| 74 0d 65 78 69 74 20 73 | 74 6f 72 65 53 74 61 74 |t.exit s|toreStat|
|000038a0| 65 0d 65 6e 64 20 69 66 | 0d 65 6e 64 20 72 65 70 |e.end if|.end rep|
|000038b0| 65 61 74 0d 70 75 74 20 | 69 74 20 26 20 72 65 74 |eat.put |it & ret|
|000038c0| 75 72 6e 20 61 66 74 65 | 72 20 67 48 43 6b 65 70 |urn afte|r gHCkep|
|000038d0| 74 4e 61 6d 65 73 0d 67 | 65 74 20 22 67 48 43 6b |tNames.g|et "gHCk|
|000038e0| 70 75 22 20 26 20 74 68 | 65 20 6e 75 6d 62 65 72 |pu" & th|e number|
|000038f0| 20 6f 66 20 6c 69 6e 65 | 73 20 6f 66 20 67 48 43 | of line|s of gHC|
|00003900| 6b 65 70 74 4e 61 6d 65 | 73 0d 64 6f 20 22 67 6c |keptName|s.do "gl|
|00003910| 6f 62 61 6c 22 20 26 26 | 20 69 74 20 26 20 72 65 |obal" &&| it & re|
|00003920| 74 75 72 6e 20 26 20 22 | 70 75 74 20 67 48 43 75 |turn & "|put gHCu|
|00003930| 73 65 72 20 69 6e 74 6f | 22 20 26 26 20 69 74 0d |ser into|" && it.|
|00003940| 67 65 74 20 22 67 48 43 | 6b 70 6f 22 20 26 20 74 |get "gHC|kpo" & t|
|00003950| 68 65 20 6e 75 6d 62 65 | 72 20 6f 66 20 6c 69 6e |he numbe|r of lin|
|00003960| 65 73 20 6f 66 20 67 48 | 43 6b 65 70 74 4e 61 6d |es of gH|CkeptNam|
|00003970| 65 73 0d 64 6f 20 22 67 | 6c 6f 62 61 6c 22 20 26 |es.do "g|lobal" &|
|00003980| 26 20 69 74 20 26 20 72 | 65 74 75 72 6e 20 26 20 |& it & r|eturn & |
|00003990| 22 70 75 74 20 67 48 43 | 6f 70 74 69 6f 6e 73 20 |"put gHC|options |
|000039a0| 69 6e 74 6f 22 20 26 26 | 20 69 74 0d 65 6e 64 20 |into" &&| it.end |
|000039b0| 73 74 6f 72 65 53 74 61 | 74 65 0d 0d 6f 6e 20 72 |storeSta|te..on r|
|000039c0| 65 73 74 6f 72 65 53 74 | 61 74 65 20 55 73 65 72 |estoreSt|ate User|
|000039d0| 4f 6e 6c 79 0d 67 6c 6f | 62 61 6c 20 67 48 43 6f |Only.glo|bal gHCo|
|000039e0| 70 74 69 6f 6e 73 2c 67 | 48 43 75 73 65 72 2c 67 |ptions,g|HCuser,g|
|000039f0| 48 43 6b 65 70 74 4e 61 | 6d 65 73 0d 70 75 74 20 |HCkeptNa|mes.put |
|00003a00| 65 6d 70 74 79 20 69 6e | 74 6f 20 67 48 43 75 73 |empty in|to gHCus|
|00003a10| 65 72 0d 69 66 20 55 73 | 65 72 4f 6e 6c 79 20 69 |er.if Us|erOnly i|
|00003a20| 73 20 6e 6f 74 20 54 72 | 75 65 20 74 68 65 6e 20 |s not Tr|ue then |
|00003a30| 70 75 74 20 65 6d 70 74 | 79 20 69 6e 74 6f 20 67 |put empt|y into g|
|00003a40| 48 43 6f 70 74 69 6f 6e | 73 0d 67 65 74 20 74 68 |HCoption|s.get th|
|00003a50| 65 20 76 61 6c 75 65 20 | 6f 66 20 77 6f 72 64 20 |e value |of word |
|00003a60| 32 20 6f 66 20 74 68 65 | 20 6c 6f 6e 67 20 6e 61 |2 of the| long na|
|00003a70| 6d 65 20 6f 66 20 74 68 | 69 73 20 73 74 61 63 6b |me of th|is stack|
|00003a80| 0d 72 65 70 65 61 74 20 | 77 69 74 68 20 69 20 3d |.repeat |with i =|
|00003a90| 20 31 20 74 6f 20 74 68 | 65 20 6e 75 6d 62 65 72 | 1 to th|e number|
|00003aa0| 20 6f 66 20 6c 69 6e 65 | 73 20 6f 66 20 67 48 43 | of line|s of gHC|
|00003ab0| 6b 65 70 74 4e 61 6d 65 | 73 0d 69 66 20 6c 69 6e |keptName|s.if lin|
|00003ac0| 65 20 69 20 6f 66 20 67 | 48 43 6b 65 70 74 4e 61 |e i of g|HCkeptNa|
|00003ad0| 6d 65 73 20 69 73 20 69 | 74 20 74 68 65 6e 0d 67 |mes is i|t then.g|
|00003ae0| 65 74 20 22 67 48 43 6b | 70 75 22 20 26 20 69 0d |et "gHCk|pu" & i.|
|00003af0| 64 6f 20 22 67 6c 6f 62 | 61 6c 22 20 26 26 20 69 |do "glob|al" && i|
|00003b00| 74 20 26 20 72 65 74 75 | 72 6e 20 26 20 22 70 75 |t & retu|rn & "pu|
|00003b10| 74 22 20 26 26 20 69 74 | 20 26 26 20 22 69 6e 74 |t" && it| && "int|
|00003b20| 6f 20 67 48 43 75 73 65 | 72 22 0d 69 66 20 55 73 |o gHCuse|r".if Us|
|00003b30| 65 72 4f 6e 6c 79 20 69 | 73 20 6e 6f 74 20 54 72 |erOnly i|s not Tr|
|00003b40| 75 65 20 74 68 65 6e 0d | 67 65 74 20 22 67 48 43 |ue then.|get "gHC|
|00003b50| 6b 70 6f 22 20 26 20 69 | 0d 64 6f 20 22 67 6c 6f |kpo" & i|.do "glo|
|00003b60| 62 61 6c 22 20 26 26 20 | 69 74 20 26 20 72 65 74 |bal" && |it & ret|
|00003b70| 75 72 6e 20 26 20 22 70 | 75 74 22 20 26 26 20 69 |urn & "p|ut" && i|
|00003b80| 74 20 26 26 20 22 69 6e | 74 6f 20 67 48 43 6f 70 |t && "in|to gHCop|
|00003b90| 74 69 6f 6e 73 22 0d 65 | 6e 64 20 69 66 0d 65 78 |tions".e|nd if.ex|
|00003ba0| 69 74 20 72 65 70 65 61 | 74 0d 65 6e 64 20 69 66 |it repea|t.end if|
|00003bb0| 0d 65 6e 64 20 72 65 70 | 65 61 74 0d 65 6e 64 20 |.end rep|eat.end |
|00003bc0| 72 65 73 74 6f 72 65 53 | 74 61 74 65 0d 0d 6f 6e |restoreS|tate..on|
|00003bd0| 20 73 74 61 72 74 44 65 | 62 75 67 0d 69 66 20 74 | startDe|bug.if t|
|00003be0| 68 65 72 65 20 69 73 20 | 61 20 73 74 61 63 6b 20 |here is |a stack |
|00003bf0| 22 43 6f 6c 6f 72 69 7a | 69 6e 67 20 48 43 20 44 |"Coloriz|ing HC D|
|00003c00| 65 62 75 67 22 20 74 68 | 65 6e 0d 67 6c 6f 62 61 |ebug" th|en.globa|
|00003c10| 6c 20 67 48 43 64 65 62 | 75 67 49 6e 69 74 0d 70 |l gHCdeb|ugInit.p|
|00003c20| 75 74 20 65 6d 70 74 79 | 20 69 6e 74 6f 20 67 48 |ut empty| into gH|
|00003c30| 43 64 65 62 75 67 49 6e | 69 74 0d 73 74 61 72 74 |CdebugIn|it.start|
|00003c40| 20 75 73 69 6e 67 20 73 | 74 61 63 6b 20 22 43 6f | using s|tack "Co|
|00003c50| 6c 6f 72 69 7a 69 6e 67 | 20 48 43 20 44 65 62 75 |lorizing| HC Debu|
|00003c60| 67 22 0d 65 6c 73 65 0d | 61 6e 73 77 65 72 20 22 |g".else.|answer "|
|00003c70| 43 61 6e d5 74 20 66 69 | 6e 64 20 73 74 61 63 6b |Can.t fi|nd stack|
|00003c80| 20 27 43 6f 6c 6f 72 69 | 7a 69 6e 67 20 48 43 20 | 'Colori|zing HC |
|00003c90| 58 43 4d 44 27 20 d0 20 | 69 67 6e 6f 72 69 6e 67 |XCMD' . |ignoring|
|00003ca0| 20 64 62 43 6f 6c 6f 72 | 69 7a 69 6e 67 48 43 22 | dbColor|izingHC"|
|00003cb0| 0d 65 6e 64 20 69 66 0d | 65 6e 64 20 73 74 61 72 |.end if.|end star|
|00003cc0| 74 44 65 62 75 67 0d 0d | 6f 6e 20 63 48 43 73 65 |tDebug..|on cHCse|
|00003cd0| 74 55 70 20 55 73 65 43 | 6f 6c 6f 72 2c 20 73 69 |tUp UseC|olor, si|
|00003ce0| 6c 65 6e 74 2c 20 6f 70 | 74 69 6f 6e 73 2c 20 64 |lent, op|tions, d|
|00003cf0| 65 70 74 68 2c 20 49 6e | 53 74 61 72 74 0d 69 66 |epth, In|Start.if|
|00003d00| 20 6f 70 74 69 6f 6e 73 | 20 69 73 20 61 20 6c 6f | options| is a lo|
|00003d10| 67 69 63 61 6c 20 74 68 | 65 6e 0d 4f 75 74 4f 66 |gical th|en.OutOf|
|00003d20| 44 61 74 65 20 22 63 48 | 43 73 65 74 55 70 22 0d |Date "cH|CsetUp".|
|00003d30| 65 6e 64 20 69 66 0d 67 | 6c 6f 62 61 6c 20 67 4f |end if.g|lobal gO|
|00003d40| 4b 74 6f 43 6f 6c 6f 72 | 69 7a 65 2c 20 67 48 43 |KtoColor|ize, gHC|
|00003d50| 6f 70 74 69 6f 6e 73 2c | 20 67 48 43 75 73 65 72 |options,| gHCuser|
|00003d60| 0d 69 66 20 69 6e 53 74 | 61 72 74 20 69 73 20 54 |.if inSt|art is T|
|00003d70| 72 75 65 20 74 68 65 6e | 20 73 65 74 4f 70 74 69 |rue then| setOpti|
|00003d80| 6f 6e 73 20 6f 70 74 69 | 6f 6e 73 0d 65 6c 73 65 |ons opti|ons.else|
|00003d90| 0d 72 65 73 74 6f 72 65 | 53 74 61 74 65 0d 69 66 |.restore|State.if|
|00003da0| 20 67 48 43 6f 70 74 69 | 6f 6e 73 20 69 73 20 65 | gHCopti|ons is e|
|00003db0| 6d 70 74 79 20 74 68 65 | 6e 20 73 65 74 4f 70 74 |mpty the|n setOpt|
|00003dc0| 69 6f 6e 73 20 6f 70 74 | 69 6f 6e 73 0d 65 6c 73 |ions opt|ions.els|
|00003dd0| 65 20 69 66 20 73 69 6c | 65 6e 74 20 69 73 20 6e |e if sil|ent is n|
|00003de0| 6f 74 20 4e 6f 20 74 68 | 65 6e 20 70 75 74 20 54 |ot No th|en put T|
|00003df0| 72 75 65 20 69 6e 74 6f | 20 53 69 6c 65 6e 74 0d |rue into| Silent.|
|00003e00| 65 6e 64 20 69 66 0d 69 | 66 20 55 73 65 43 6f 6c |end if.i|f UseCol|
|00003e10| 6f 72 20 69 73 20 6e 6f | 74 20 46 61 6c 73 65 20 |or is no|t False |
|00003e20| 74 68 65 6e 0d 69 66 20 | 6d 61 78 44 65 70 74 68 |then.if |maxDepth|
|00003e30| 28 29 3d 31 20 61 6e 64 | 20 63 68 61 72 20 38 20 |()=1 and| char 8 |
|00003e40| 6f 66 20 67 48 43 6f 70 | 74 69 6f 6e 73 20 69 73 |of gHCop|tions is|
|00003e50| 20 6e 6f 74 20 31 20 6f | 72 c2 20 2d 2d 20 66 6f | not 1 o|r. -- fo|
|00003e60| 72 63 65 43 6f 6c 6f 72 | 0d 63 68 61 72 20 39 20 |rceColor|.char 9 |
|00003e70| 6f 66 20 67 48 43 6f 70 | 74 69 6f 6e 73 20 69 73 |of gHCop|tions is|
|00003e80| 20 31 20 74 68 65 6e 20 | 2d 2d 20 66 6f 72 63 65 | 1 then |-- force|
|00003e90| 42 57 0d 63 48 43 64 69 | 73 70 6f 73 65 0d 65 6c |BW.cHCdi|spose.el|
|00003ea0| 73 65 0d 63 48 43 69 6e | 73 74 61 6c 6c 20 64 65 |se.cHCin|stall de|
|00003eb0| 70 74 68 0d 69 66 20 63 | 68 61 72 20 38 20 6f 66 |pth.if c|har 8 of|
|00003ec0| 20 67 48 43 6f 70 74 69 | 6f 6e 73 20 69 73 20 31 | gHCopti|ons is 1|
|00003ed0| 20 74 68 65 6e 20 70 75 | 74 20 65 6d 70 74 79 20 | then pu|t empty |
|00003ee0| 69 6e 74 6f 20 67 4f 6b | 54 6f 43 6f 6c 6f 72 69 |into gOk|ToColori|
|00003ef0| 7a 65 0d 69 66 20 67 4f | 6b 54 6f 43 6f 6c 6f 72 |ze.if gO|kToColor|
|00003f00| 69 7a 65 20 69 73 20 6e | 6f 74 20 65 6d 70 74 79 |ize is n|ot empty|
|00003f10| 20 74 68 65 6e 20 63 48 | 43 64 69 73 70 6f 73 65 | then cH|Cdispose|
|00003f20| 0d 65 6e 64 20 69 66 0d | 65 6c 73 65 0d 63 48 43 |.end if.|else.cHC|
|00003f30| 64 69 73 70 6f 73 65 0d | 65 6e 64 20 69 66 0d 69 |dispose.|end if.i|
|00003f40| 66 20 63 68 61 72 20 31 | 34 20 6f 66 20 67 48 43 |f char 1|4 of gHC|
|00003f50| 4f 70 74 69 6f 6e 73 20 | 69 73 20 31 20 74 68 65 |Options |is 1 the|
|00003f60| 6e 20 73 74 61 72 74 44 | 65 62 75 67 0d 69 66 20 |n startD|ebug.if |
|00003f70| 63 68 61 72 20 31 30 20 | 6f 66 20 67 48 43 4f 70 |char 10 |of gHCOp|
|00003f80| 74 69 6f 6e 73 20 69 73 | 20 31 20 74 68 65 6e 0d |tions is| 1 then.|
|00003f90| 63 48 43 62 72 65 61 6b | 53 63 72 65 65 6e 4c 6f |cHCbreak|ScreenLo|
|00003fa0| 63 6b 0d 65 6e 64 20 69 | 66 0d 70 75 74 20 65 6d |ck.end i|f.put em|
|00003fb0| 70 74 79 20 69 6e 74 6f | 20 67 48 43 75 73 65 72 |pty into| gHCuser|
|00003fc0| 0d 69 66 20 69 6e 53 74 | 61 72 74 20 69 73 20 6e |.if inSt|art is n|
|00003fd0| 6f 74 20 54 72 75 65 20 | 61 6e 64 20 63 68 61 72 |ot True |and char|
|00003fe0| 20 31 36 20 6f 66 20 67 | 48 43 6f 70 74 69 6f 6e | 16 of g|HCoption|
|00003ff0| 73 20 69 73 20 31 0d 74 | 68 65 6e 20 73 65 6e 64 |s is 1.t|hen send|
|00004000| 20 48 43 69 6e 69 74 20 | 74 6f 20 74 68 69 73 20 | HCinit |to this |
|00004010| 63 61 72 64 0d 65 6e 64 | 20 63 48 43 73 65 74 55 |card.end| cHCsetU|
|00004020| 70 0d 0d 6f 6e 20 63 48 | 43 73 74 61 72 74 20 55 |p..on cH|Cstart U|
|00004030| 73 65 43 6f 6c 6f 72 2c | 20 73 69 6c 65 6e 74 2c |seColor,| silent,|
|00004040| 20 6f 70 74 69 6f 6e 73 | 2c 20 64 65 70 74 68 0d | options|, depth.|
|00004050| 69 66 20 6f 70 74 69 6f | 6e 73 20 69 73 20 61 20 |if optio|ns is a |
|00004060| 6c 6f 67 69 63 61 6c 20 | 74 68 65 6e 0d 4f 75 74 |logical |then.Out|
|00004070| 4f 66 44 61 74 65 20 22 | 63 48 43 73 74 61 72 74 |OfDate "|cHCstart|
|00004080| 22 0d 65 6e 64 20 69 66 | 0d 63 48 43 6c 65 61 76 |".end if|.cHCleav|
|00004090| 65 0d 63 48 43 73 65 74 | 55 70 20 55 73 65 43 6f |e.cHCset|Up UseCo|
|000040a0| 6c 6f 72 2c 20 73 69 6c | 65 6e 74 2c 20 6f 70 74 |lor, sil|ent, opt|
|000040b0| 69 6f 6e 73 2c 20 64 65 | 70 74 68 2c 20 54 72 75 |ions, de|pth, Tru|
|000040c0| 65 0d 72 65 73 74 6f 72 | 65 53 74 61 74 65 20 54 |e.restor|eState T|
|000040d0| 72 75 65 0d 69 66 20 63 | 68 61 72 20 31 36 20 6f |rue.if c|har 16 o|
|000040e0| 66 20 67 48 43 6f 70 74 | 69 6f 6e 73 20 69 73 20 |f gHCopt|ions is |
|000040f0| 31 20 74 68 65 6e 20 73 | 65 6e 64 20 48 43 69 6e |1 then s|end HCin|
|00004100| 69 74 20 74 6f 20 74 68 | 69 73 20 63 61 72 64 0d |it to th|is card.|
|00004110| 63 48 43 63 6f 6c 6f 72 | 69 7a 65 0d 65 6e 64 20 |cHCcolor|ize.end |
|00004120| 63 48 43 73 74 61 72 74 | 0d 0d 6f 6e 20 63 48 43 |cHCstart|..on cHC|
|00004130| 73 74 6f 70 0d 63 48 43 | 63 6c 6f 73 65 0d 73 74 |stop.cHC|close.st|
|00004140| 6f 72 65 53 74 61 74 65 | 0d 63 48 43 73 68 6f 77 |oreState|.cHCshow|
|00004150| 43 6f 6c 6f 72 0d 65 6e | 64 20 63 48 43 73 74 6f |Color.en|d cHCsto|
|00004160| 70 0d 0d 6f 6e 20 63 48 | 43 72 65 73 74 61 72 74 |p..on cH|Crestart|
|00004170| 20 55 73 65 43 6f 6c 6f | 72 2c 20 6f 70 74 69 6f | UseColo|r, optio|
|00004180| 6e 73 2c 20 64 65 70 74 | 68 0d 69 66 20 6f 70 74 |ns, dept|h.if opt|
|00004190| 69 6f 6e 73 20 69 73 20 | 61 20 6c 6f 67 69 63 61 |ions is |a logica|
|000041a0| 6c 20 74 68 65 6e 0d 4f | 75 74 4f 66 44 61 74 65 |l then.O|utOfDate|
|000041b0| 20 22 63 48 43 72 65 73 | 74 61 72 74 22 0d 65 6e | "cHCres|tart".en|
|000041c0| 64 20 69 66 0d 67 6c 6f | 62 61 6c 20 67 48 43 6f |d if.glo|bal gHCo|
|000041d0| 70 74 69 6f 6e 73 2c 20 | 67 4f 6b 54 6f 43 6f 6c |ptions, |gOkToCol|
|000041e0| 6f 72 69 7a 65 0d 72 65 | 73 74 6f 72 65 53 74 61 |orize.re|storeSta|
|000041f0| 74 65 0d 69 66 20 67 48 | 43 6f 70 74 69 6f 6e 73 |te.if gH|Coptions|
|00004200| 20 69 73 20 65 6d 70 74 | 79 20 74 68 65 6e 20 73 | is empt|y then s|
|00004210| 65 74 4f 70 74 69 6f 6e | 73 20 6f 70 74 69 6f 6e |etOption|s option|
|00004220| 73 0d 69 66 20 55 73 65 | 43 6f 6c 6f 72 20 69 73 |s.if Use|Color is|
|00004230| 20 6e 6f 74 20 46 61 6c | 73 65 20 74 68 65 6e 0d | not Fal|se then.|
|00004240| 69 66 20 6d 61 78 44 65 | 70 74 68 28 29 3d 31 20 |if maxDe|pth()=1 |
|00004250| 61 6e 64 20 63 68 61 72 | 20 38 20 6f 66 20 67 48 |and char| 8 of gH|
|00004260| 43 6f 70 74 69 6f 6e 73 | 20 69 73 20 6e 6f 74 20 |Coptions| is not |
|00004270| 31 20 6f 72 c2 20 2d 2d | 20 66 6f 72 63 65 43 6f |1 or. --| forceCo|
|00004280| 6c 6f 72 0d 63 68 61 72 | 20 39 20 6f 66 20 67 48 |lor.char| 9 of gH|
|00004290| 43 6f 70 74 69 6f 6e 73 | 20 69 73 20 31 20 74 68 |Coptions| is 1 th|
|000042a0| 65 6e 20 2d 2d 20 66 6f | 72 63 65 42 57 0d 63 48 |en -- fo|rceBW.cH|
|000042b0| 43 64 69 73 70 6f 73 65 | 0d 65 6c 73 65 0d 63 48 |Cdispose|.else.cH|
|000042c0| 43 69 6e 73 74 61 6c 6c | 20 64 65 70 74 68 0d 69 |Cinstall| depth.i|
|000042d0| 66 20 63 68 61 72 20 38 | 20 6f 66 20 67 48 43 6f |f char 8| of gHCo|
|000042e0| 70 74 69 6f 6e 73 20 69 | 73 20 31 20 74 68 65 6e |ptions i|s 1 then|
|000042f0| 20 70 75 74 20 65 6d 70 | 74 79 20 69 6e 74 6f 20 | put emp|ty into |
|00004300| 67 4f 6b 54 6f 43 6f 6c | 6f 72 69 7a 65 0d 69 66 |gOkToCol|orize.if|
|00004310| 20 67 4f 6b 54 6f 43 6f | 6c 6f 72 69 7a 65 20 69 | gOkToCo|lorize i|
|00004320| 73 20 6e 6f 74 20 65 6d | 70 74 79 20 74 68 65 6e |s not em|pty then|
|00004330| 20 63 48 43 64 69 73 70 | 6f 73 65 0d 65 6e 64 20 | cHCdisp|ose.end |
|00004340| 69 66 0d 65 6c 73 65 0d | 63 48 43 64 69 73 70 6f |if.else.|cHCdispo|
|00004350| 73 65 0d 65 6e 64 20 69 | 66 0d 69 66 20 63 68 61 |se.end i|f.if cha|
|00004360| 72 20 31 34 20 6f 66 20 | 67 48 43 4f 70 74 69 6f |r 14 of |gHCOptio|
|00004370| 6e 73 20 69 73 20 31 20 | 74 68 65 6e 20 73 74 61 |ns is 1 |then sta|
|00004380| 72 74 44 65 62 75 67 0d | 69 66 20 63 68 61 72 20 |rtDebug.|if char |
|00004390| 31 30 20 6f 66 20 67 48 | 43 4f 70 74 69 6f 6e 73 |10 of gH|COptions|
|000043a0| 20 69 73 20 31 20 74 68 | 65 6e 0d 63 48 43 62 72 | is 1 th|en.cHCbr|
|000043b0| 65 61 6b 53 63 72 65 65 | 6e 4c 6f 63 6b 0d 65 6e |eakScree|nLock.en|
|000043c0| 64 20 69 66 0d 69 66 20 | 6e 6f 74 20 74 68 65 20 |d if.if |not the |
|000043d0| 6c 6f 63 6b 53 63 72 65 | 65 6e 20 74 68 65 6e 20 |lockScre|en then |
|000043e0| 6c 6f 63 6b 20 73 63 72 | 65 65 6e 0d 69 66 20 63 |lock scr|een.if c|
|000043f0| 68 61 72 20 31 36 20 6f | 66 20 67 48 43 6f 70 74 |har 16 o|f gHCopt|
|00004400| 69 6f 6e 73 20 69 73 20 | 31 20 74 68 65 6e 20 73 |ions is |1 then s|
|00004410| 65 6e 64 20 48 43 69 6e | 69 74 20 74 6f 20 74 68 |end HCin|it to th|
|00004420| 69 73 20 63 61 72 64 0d | 63 48 43 63 6f 6c 6f 72 |is card.|cHCcolor|
|00004430| 69 7a 65 0d 69 66 20 6e | 6f 74 20 74 68 65 20 6c |ize.if n|ot the l|
|00004440| 6f 63 6b 53 63 72 65 65 | 6e 20 74 68 65 6e 20 6c |ockScree|n then l|
|00004450| 6f 63 6b 20 73 63 72 65 | 65 6e 0d 65 6e 64 20 63 |ock scre|en.end c|
|00004460| 48 43 72 65 73 74 61 72 | 74 0d 0d 6f 6e 20 63 6c |HCrestar|t..on cl|
|00004470| 6f 73 65 44 6f 77 6e 43 | 48 43 0d 67 6c 6f 62 61 |oseDownC|HC.globa|
|00004480| 6c 20 67 48 43 4f 70 74 | 69 6f 6e 73 2c 20 67 48 |l gHCOpt|ions, gH|
|00004490| 43 75 73 65 72 0d 63 48 | 43 75 6e 43 6f 6c 6f 72 |Cuser.cH|CunColor|
|000044a0| 69 7a 65 0d 63 48 43 64 | 69 73 70 6f 73 65 0d 69 |ize.cHCd|ispose.i|
|000044b0| 66 20 63 68 61 72 20 31 | 34 20 6f 66 20 67 48 43 |f char 1|4 of gHC|
|000044c0| 4f 70 74 69 6f 6e 73 20 | 69 73 20 31 0d 74 68 65 |Options |is 1.the|
|000044d0| 6e 20 69 66 20 74 68 65 | 20 73 74 61 63 6b 73 49 |n if the| stacksI|
|000044e0| 6e 55 73 65 20 63 6f 6e | 74 61 69 6e 73 20 22 43 |nUse con|tains "C|
|000044f0| 6f 6c 6f 72 69 7a 69 6e | 67 20 48 43 20 44 65 62 |olorizin|g HC Deb|
|00004500| 75 67 22 0d 74 68 65 6e | 20 73 74 6f 70 20 75 73 |ug".then| stop us|
|00004510| 69 6e 67 20 73 74 61 63 | 6b 20 22 43 6f 6c 6f 72 |ing stac|k "Color|
|00004520| 69 7a 69 6e 67 20 48 43 | 20 44 65 62 75 67 22 0d |izing HC| Debug".|
|00004530| 73 74 6f 72 65 53 74 61 | 74 65 0d 70 75 74 20 65 |storeSta|te.put e|
|00004540| 6d 70 74 79 20 69 6e 74 | 6f 20 67 48 43 4f 70 74 |mpty int|o gHCOpt|
|00004550| 69 6f 6e 73 0d 70 75 74 | 20 65 6d 70 74 79 20 69 |ions.put| empty i|
|00004560| 6e 74 6f 20 67 48 43 75 | 73 65 72 0d 65 6e 64 20 |nto gHCu|ser.end |
|00004570| 63 6c 6f 73 65 44 6f 77 | 6e 43 48 43 0d 0d 6f 6e |closeDow|nCHC..on|
|00004580| 20 63 48 43 63 6c 6f 73 | 65 0d 67 6c 6f 62 61 6c | cHCclos|e.global|
|00004590| 20 67 48 43 75 73 65 72 | 2c 20 67 48 43 6f 70 74 | gHCuser|, gHCopt|
|000045a0| 69 6f 6e 73 0d 69 66 20 | 67 48 43 6f 70 74 69 6f |ions.if |gHCoptio|
|000045b0| 6e 73 20 69 73 20 65 6d | 70 74 79 20 74 68 65 6e |ns is em|pty then|
|000045c0| 20 65 78 69 74 20 63 48 | 43 63 6c 6f 73 65 0d 70 | exit cH|Cclose.p|
|000045d0| 75 74 20 65 6d 70 74 79 | 20 69 6e 74 6f 20 67 48 |ut empty| into gH|
|000045e0| 43 75 73 65 72 0d 63 6c | 6f 73 65 64 6f 77 6e 43 |Cuser.cl|osedownC|
|000045f0| 48 43 0d 65 6e 64 20 63 | 48 43 63 6c 6f 73 65 0d |HC.end c|HCclose.|
|00004600| 0d 6f 6e 20 63 48 43 6c | 65 61 76 65 0d 67 6c 6f |.on cHCl|eave.glo|
|00004610| 62 61 6c 20 67 48 43 6f | 70 74 69 6f 6e 73 0d 69 |bal gHCo|ptions.i|
|00004620| 66 20 67 48 43 6f 70 74 | 69 6f 6e 73 20 69 73 20 |f gHCopt|ions is |
|00004630| 65 6d 70 74 79 20 74 68 | 65 6e 20 65 78 69 74 20 |empty th|en exit |
|00004640| 63 48 43 6c 65 61 76 65 | 0d 63 6c 6f 73 65 64 6f |cHCleave|.closedo|
|00004650| 77 6e 43 48 43 0d 65 6e | 64 20 63 48 43 6c 65 61 |wnCHC.en|d cHClea|
|00004660| 76 65 0d 0d 6f 6e 20 63 | 48 43 63 6f 6c 6f 72 69 |ve..on c|HCcolori|
|00004670| 7a 65 0d 67 6c 6f 62 61 | 6c 20 67 4f 4b 54 6f 43 |ze.globa|l gOKToC|
|00004680| 6f 6c 6f 72 69 7a 65 2c | 20 67 48 43 6f 70 74 69 |olorize,| gHCopti|
|00004690| 6f 6e 73 2c 20 67 48 43 | 77 69 6e 64 6f 77 73 2c |ons, gHC|windows,|
|000046a0| 20 67 48 43 65 66 66 65 | 63 74 73 0d 69 66 20 67 | gHCeffe|cts.if g|
|000046b0| 48 43 6f 70 74 69 6f 6e | 73 20 69 73 20 65 6d 70 |HCoption|s is emp|
|000046c0| 74 79 20 74 68 65 6e 20 | 65 78 69 74 20 63 48 43 |ty then |exit cHC|
|000046d0| 63 6f 6c 6f 72 69 7a 65 | 0d 69 66 20 6e 6f 74 20 |colorize|.if not |
|000046e0| 74 68 65 20 6c 6f 63 6b | 53 63 72 65 65 6e 20 74 |the lock|Screen t|
|000046f0| 68 65 6e 20 6c 6f 63 6b | 20 73 63 72 65 65 6e 0d |hen lock| screen.|
|00004700| 69 66 20 63 68 61 72 20 | 31 35 20 6f 66 20 67 48 |if char |15 of gH|
|00004710| 43 6f 70 74 69 6f 6e 73 | 20 69 73 20 31 20 74 68 |Coptions| is 1 th|
|00004720| 65 6e 20 73 65 6e 64 20 | 48 43 70 72 65 47 72 61 |en send |HCpreGra|
|00004730| 70 68 69 63 20 74 6f 20 | 63 64 0d 69 66 20 67 4f |phic to |cd.if gO|
|00004740| 4b 54 6f 43 6f 6c 6f 72 | 69 7a 65 20 69 73 20 6e |KToColor|ize is n|
|00004750| 6f 74 20 65 6d 70 74 79 | 20 74 68 65 6e 0d 69 66 |ot empty| then.if|
|00004760| 20 63 68 61 72 20 33 20 | 6f 66 20 67 48 43 6f 70 | char 3 |of gHCop|
|00004770| 74 69 6f 6e 73 20 69 73 | 20 31 20 74 68 65 6e 0d |tions is| 1 then.|
|00004780| 73 65 6e 64 20 48 43 62 | 57 68 69 74 65 20 74 6f |send HCb|White to|
|00004790| 20 63 64 0d 65 6e 64 20 | 69 66 0d 65 6c 73 65 0d | cd.end |if.else.|
|000047a0| 69 66 20 63 68 61 72 20 | 31 20 6f 66 20 67 48 43 |if char |1 of gHC|
|000047b0| 6f 70 74 69 6f 6e 73 20 | 69 73 20 31 20 74 68 65 |options |is 1 the|
|000047c0| 6e 20 73 65 6e 64 20 48 | 43 63 6f 6c 6f 72 69 7a |n send H|Ccoloriz|
|000047d0| 65 20 74 6f 20 63 64 0d | 65 6c 73 65 20 63 6f 6c |e to cd.|else col|
|000047e0| 6f 72 69 7a 65 48 43 20 | 22 45 72 61 73 65 22 0d |orizeHC |"Erase".|
|000047f0| 65 6e 64 20 69 66 0d 69 | 66 20 63 68 61 72 20 35 |end if.i|f char 5|
|00004800| 20 6f 66 20 67 48 43 6f | 70 74 69 6f 6e 73 20 69 | of gHCo|ptions i|
|00004810| 73 20 31 20 74 68 65 6e | 20 73 65 6e 64 20 48 43 |s 1 then| send HC|
|00004820| 67 72 61 70 68 69 63 20 | 74 6f 20 63 64 0d 67 65 |graphic |to cd.ge|
|00004830| 74 20 67 48 43 65 66 66 | 65 63 74 73 0d 70 75 74 |t gHCeff|ects.put|
|00004840| 20 65 6d 70 74 79 20 69 | 6e 74 6f 20 67 48 43 65 | empty i|nto gHCe|
|00004850| 66 66 65 63 74 73 0d 69 | 66 20 69 74 20 69 73 20 |ffects.i|f it is |
|00004860| 65 6d 70 74 79 20 74 68 | 65 6e 20 75 6e 6c 6f 63 |empty th|en unloc|
|00004870| 6b 20 73 63 72 65 65 6e | 0d 65 6c 73 65 20 64 6f |k screen|.else do|
|00004880| 20 22 75 6e 6c 6f 63 6b | 20 73 63 72 65 65 6e 20 | "unlock| screen |
|00004890| 77 69 74 68 22 20 26 26 | 20 69 74 0d 69 66 20 28 |with" &&| it.if (|
|000048a0| 63 68 61 72 20 31 30 20 | 6f 66 20 67 48 43 6f 70 |char 10 |of gHCop|
|000048b0| 74 69 6f 6e 73 20 69 73 | 20 31 29 20 61 6e 64 20 |tions is| 1) and |
|000048c0| 67 48 43 77 69 6e 64 6f | 77 73 20 69 73 20 6e 6f |gHCwindo|ws is no|
|000048d0| 74 20 65 6d 70 74 79 0d | 74 68 65 6e 20 63 48 43 |t empty.|then cHC|
|000048e0| 73 68 6f 77 57 69 6e 64 | 6f 77 73 0d 65 6e 64 20 |showWind|ows.end |
|000048f0| 63 48 43 63 6f 6c 6f 72 | 69 7a 65 0d 0d 6f 6e 20 |cHCcolor|ize..on |
|00004900| 63 48 43 75 6e 43 6f 6c | 6f 72 69 7a 65 0d 67 6c |cHCunCol|orize.gl|
|00004910| 6f 62 61 6c 20 67 4f 4b | 54 6f 43 6f 6c 6f 72 69 |obal gOK|ToColori|
|00004920| 7a 65 2c 20 67 48 43 6f | 70 74 69 6f 6e 73 2c 20 |ze, gHCo|ptions, |
|00004930| 67 48 43 77 69 6e 64 6f | 77 73 0d 69 66 20 67 48 |gHCwindo|ws.if gH|
|00004940| 43 6f 70 74 69 6f 6e 73 | 20 69 73 20 65 6d 70 74 |Coptions| is empt|
|00004950| 79 20 74 68 65 6e 20 65 | 78 69 74 20 63 48 43 75 |y then e|xit cHCu|
|00004960| 6e 43 6f 6c 6f 72 69 7a | 65 0d 69 66 20 67 4f 4b |nColoriz|e.if gOK|
|00004970| 54 6f 43 6f 6c 6f 72 69 | 7a 65 20 69 73 20 6e 6f |ToColori|ze is no|
|00004980| 74 20 65 6d 70 74 79 20 | 74 68 65 6e 0d 69 66 20 |t empty |then.if |
|00004990| 63 68 61 72 20 34 20 6f | 66 20 67 48 43 6f 70 74 |char 4 o|f gHCopt|
|000049a0| 69 6f 6e 73 20 69 73 20 | 31 20 74 68 65 6e 20 73 |ions is |1 then s|
|000049b0| 65 6e 64 20 48 43 75 6e | 42 57 68 69 74 65 20 74 |end HCun|BWhite t|
|000049c0| 6f 20 63 64 0d 65 6c 73 | 65 0d 69 66 20 63 68 61 |o cd.els|e.if cha|
|000049d0| 72 20 31 31 20 6f 66 20 | 67 48 43 6f 70 74 69 6f |r 11 of |gHCoptio|
|000049e0| 6e 73 20 69 73 20 6e 6f | 74 20 31 20 74 68 65 6e |ns is no|t 1 then|
|000049f0| 20 73 65 74 20 74 68 65 | 20 63 75 72 73 6f 72 20 | set the| cursor |
|00004a00| 74 6f 20 77 61 74 63 68 | 0d 69 66 20 6e 6f 74 20 |to watch|.if not |
|00004a10| 74 68 65 20 6c 6f 63 6b | 53 63 72 65 65 6e 20 74 |the lock|Screen t|
|00004a20| 68 65 6e 20 6c 6f 63 6b | 20 73 63 72 65 65 6e 0d |hen lock| screen.|
|00004a30| 65 6e 64 20 69 66 0d 65 | 6c 73 65 0d 69 66 20 63 |end if.e|lse.if c|
|00004a40| 68 61 72 20 32 20 6f 66 | 20 67 48 43 6f 70 74 69 |har 2 of| gHCopti|
|00004a50| 6f 6e 73 20 69 73 20 31 | 20 74 68 65 6e 20 73 65 |ons is 1| then se|
|00004a60| 6e 64 20 48 43 75 6e 43 | 6f 6c 6f 72 69 7a 65 20 |nd HCunC|olorize |
|00004a70| 74 6f 20 63 64 0d 65 6c | 73 65 0d 69 66 20 63 68 |to cd.el|se.if ch|
|00004a80| 61 72 20 31 31 20 6f 66 | 20 67 48 43 6f 70 74 69 |ar 11 of| gHCopti|
|00004a90| 6f 6e 73 20 69 73 20 6e | 6f 74 20 31 20 74 68 65 |ons is n|ot 1 the|
|00004aa0| 6e 20 73 65 74 20 74 68 | 65 20 63 75 72 73 6f 72 |n set th|e cursor|
|00004ab0| 20 74 6f 20 77 61 74 63 | 68 0d 69 66 20 6e 6f 74 | to watc|h.if not|
|00004ac0| 20 74 68 65 20 6c 6f 63 | 6b 53 63 72 65 65 6e 20 | the loc|kScreen |
|00004ad0| 74 68 65 6e 20 6c 6f 63 | 6b 20 73 63 72 65 65 6e |then loc|k screen|
|00004ae0| 0d 65 6e 64 20 69 66 0d | 65 6e 64 20 69 66 0d 69 |.end if.|end if.i|
|00004af0| 66 20 63 68 61 72 20 36 | 20 6f 66 20 67 48 43 6f |f char 6| of gHCo|
|00004b00| 70 74 69 6f 6e 73 20 69 | 73 20 31 20 74 68 65 6e |ptions i|s 1 then|
|00004b10| 20 73 65 6e 64 20 48 43 | 75 6e 47 72 61 70 68 69 | send HC|unGraphi|
|00004b20| 63 20 74 6f 20 63 64 0d | 69 66 20 28 63 68 61 72 |c to cd.|if (char|
|00004b30| 20 31 30 20 6f 66 20 67 | 48 43 6f 70 74 69 6f 6e | 10 of g|HCoption|
|00004b40| 73 20 69 73 20 31 29 20 | 61 6e 64 20 67 48 43 77 |s is 1) |and gHCw|
|00004b50| 69 6e 64 6f 77 73 20 69 | 73 20 6e 6f 74 20 65 6d |indows i|s not em|
|00004b60| 70 74 79 0d 74 68 65 6e | 20 63 48 43 6b 69 6c 6c |pty.then| cHCkill|
|00004b70| 57 69 6e 64 6f 77 73 0d | 65 6e 64 20 63 48 43 75 |Windows.|end cHCu|
|00004b80| 6e 43 6f 6c 6f 72 69 7a | 65 0d 0d 6f 6e 20 63 48 |nColoriz|e..on cH|
|00004b90| 43 72 65 43 6f 6c 6f 72 | 69 7a 65 0d 63 48 43 75 |CreColor|ize.cHCu|
|00004ba0| 6e 43 6f 6c 6f 72 69 7a | 65 0d 63 48 43 63 6f 6c |nColoriz|e.cHCcol|
|00004bb0| 6f 72 69 7a 65 0d 65 6e | 64 20 63 48 43 72 65 43 |orize.en|d cHCreC|
|00004bc0| 6f 6c 6f 72 69 7a 65 0d | 0d 6f 6e 20 63 48 43 73 |olorize.|.on cHCs|
|00004bd0| 68 6f 77 43 6f 6c 6f 72 | 20 73 69 6e 67 6c 65 0d |howColor| single.|
|00004be0| 69 66 20 73 69 6e 67 6c | 65 20 69 73 20 54 72 75 |if singl|e is Tru|
|00004bf0| 65 20 74 68 65 6e 0d 69 | 66 20 6e 6f 74 20 74 68 |e then.i|f not th|
|00004c00| 65 20 6c 6f 63 6b 53 63 | 72 65 65 6e 20 74 68 65 |e lockSc|reen the|
|00004c10| 6e 0d 6c 6f 63 6b 20 73 | 63 72 65 65 6e 0d 75 6e |n.lock s|creen.un|
|00004c20| 6c 6f 63 6b 20 73 63 72 | 65 65 6e 0d 65 6e 64 20 |lock scr|een.end |
|00004c30| 69 66 0d 65 6c 73 65 20 | 69 66 20 73 69 6e 67 6c |if.else |if singl|
|00004c40| 65 20 69 73 20 59 65 73 | 20 74 68 65 6e 0d 75 6e |e is Yes| then.un|
|00004c50| 6c 6f 63 6b 20 73 63 72 | 65 65 6e 0d 65 6c 73 65 |lock scr|een.else|
|00004c60| 0d 67 6c 6f 62 61 6c 20 | 67 4f 6b 54 6f 43 6f 6c |.global |gOkToCol|
|00004c70| 6f 72 69 7a 65 0d 69 66 | 20 67 4f 6b 54 6f 43 6f |orize.if| gOkToCo|
|00004c80| 6c 6f 72 69 7a 65 20 69 | 73 20 65 6d 70 74 79 20 |lorize i|s empty |
|00004c90| 74 68 65 6e 0d 69 66 20 | 6e 6f 74 20 74 68 65 20 |then.if |not the |
|00004ca0| 6c 6f 63 6b 53 63 72 65 | 65 6e 20 74 68 65 6e 20 |lockScre|en then |
|00004cb0| 6c 6f 63 6b 20 73 63 72 | 65 65 6e 0d 75 6e 6c 6f |lock scr|een.unlo|
|00004cc0| 63 6b 20 73 63 72 65 65 | 6e 0d 65 6e 64 20 69 66 |ck scree|n.end if|
|00004cd0| 0d 72 65 70 65 61 74 20 | 77 68 69 6c 65 20 74 68 |.repeat |while th|
|00004ce0| 65 20 6c 6f 63 6b 53 63 | 72 65 65 6e 0d 75 6e 6c |e lockSc|reen.unl|
|00004cf0| 6f 63 6b 20 73 63 72 65 | 65 6e 0d 65 6e 64 20 72 |ock scre|en.end r|
|00004d00| 65 70 65 61 74 0d 65 6e | 64 20 69 66 0d 65 6e 64 |epeat.en|d if.end|
|00004d10| 20 63 48 43 73 68 6f 77 | 43 6f 6c 6f 72 0d 0d 6f | cHCshow|Color..o|
|00004d20| 6e 20 63 48 43 62 72 65 | 61 6b 53 63 72 65 65 6e |n cHCbre|akScreen|
|00004d30| 4c 6f 63 6b 0d 67 6c 6f | 62 61 6c 20 67 4f 6b 54 |Lock.glo|bal gOkT|
|00004d40| 6f 43 6f 6c 6f 72 69 7a | 65 2c 20 67 48 43 65 66 |oColoriz|e, gHCef|
|00004d50| 66 65 63 74 73 2c 20 67 | 48 43 6f 70 74 69 6f 6e |fects, g|HCoption|
|00004d60| 73 0d 67 65 74 20 67 48 | 43 65 66 66 65 63 74 73 |s.get gH|Ceffects|
|00004d70| 0d 70 75 74 20 65 6d 70 | 74 79 20 69 6e 74 6f 20 |.put emp|ty into |
|00004d80| 67 48 43 65 66 66 65 63 | 74 73 0d 69 66 20 69 74 |gHCeffec|ts.if it|
|00004d90| 20 69 73 20 65 6d 70 74 | 79 20 74 68 65 6e 0d 72 | is empt|y then.r|
|00004da0| 65 70 65 61 74 20 77 68 | 69 6c 65 20 74 68 65 20 |epeat wh|ile the |
|00004db0| 6c 6f 63 6b 53 63 72 65 | 65 6e 0d 75 6e 6c 6f 63 |lockScre|en.unloc|
|00004dc0| 6b 20 73 63 72 65 65 6e | 0d 65 6e 64 20 72 65 70 |k screen|.end rep|
|00004dd0| 65 61 74 0d 65 6c 73 65 | 0d 72 65 70 65 61 74 20 |eat.else|.repeat |
|00004de0| 77 68 69 6c 65 20 74 68 | 65 20 6c 6f 63 6b 53 63 |while th|e lockSc|
|00004df0| 72 65 65 6e 0d 64 6f 20 | 22 75 6e 6c 6f 63 6b 20 |reen.do |"unlock |
|00004e00| 73 63 72 65 65 6e 20 77 | 69 74 68 22 20 26 26 20 |screen w|ith" && |
|00004e10| 69 74 0d 65 6e 64 20 72 | 65 70 65 61 74 0d 65 6e |it.end r|epeat.en|
|00004e20| 64 20 69 66 0d 65 6e 64 | 20 63 48 43 62 72 65 61 |d if.end| cHCbrea|
|00004e30| 6b 53 63 72 65 65 6e 4c | 6f 63 6b 0d 0d 6f 6e 20 |kScreenL|ock..on |
|00004e40| 63 48 43 66 6f 72 63 65 | 53 63 72 65 65 6e 4c 6f |cHCforce|ScreenLo|
|00004e50| 63 6b 0d 63 48 43 62 72 | 65 61 6b 53 63 72 65 65 |ck.cHCbr|eakScree|
|00004e60| 6e 4c 6f 63 6b 0d 65 6e | 64 20 63 48 43 66 6f 72 |nLock.en|d cHCfor|
|00004e70| 63 65 53 63 72 65 65 6e | 4c 6f 63 6b 0d 0d 6f 6e |ceScreen|Lock..on|
|00004e80| 20 63 48 43 6c 6f 63 6b | 20 52 65 63 65 6e 74 54 | cHClock| RecentT|
|00004e90| 6f 6f 0d 6c 6f 63 6b 20 | 73 63 72 65 65 6e 0d 73 |oo.lock |screen.s|
|00004ea0| 65 74 20 6c 6f 63 6b 4d | 65 73 73 61 67 65 73 20 |et lockM|essages |
|00004eb0| 74 6f 20 54 72 75 65 0d | 69 66 20 52 65 63 65 6e |to True.|if Recen|
|00004ec0| 74 54 6f 6f 20 69 73 20 | 6e 6f 74 20 46 61 6c 73 |tToo is |not Fals|
|00004ed0| 65 20 74 68 65 6e 20 73 | 65 74 20 6c 6f 63 6b 52 |e then s|et lockR|
|00004ee0| 65 63 65 6e 74 20 74 6f | 20 54 72 75 65 0d 65 6e |ecent to| True.en|
|00004ef0| 64 20 63 48 43 6c 6f 63 | 6b 0d 0d 6f 6e 20 63 48 |d cHCloc|k..on cH|
|00004f00| 43 75 6e 4c 6f 63 6b 20 | 52 65 63 65 6e 74 54 6f |CunLock |RecentTo|
|00004f10| 6f 0d 73 65 74 20 6c 6f | 63 6b 52 65 63 65 6e 74 |o.set lo|ckRecent|
|00004f20| 20 74 6f 20 46 61 6c 73 | 65 0d 69 66 20 52 65 63 | to Fals|e.if Rec|
|00004f30| 65 6e 74 54 6f 6f 20 69 | 73 20 6e 6f 74 20 46 61 |entToo i|s not Fa|
|00004f40| 6c 73 65 20 74 68 65 6e | 20 73 65 74 20 6c 6f 63 |lse then| set loc|
|00004f50| 6b 52 65 63 65 6e 74 20 | 74 6f 20 46 61 6c 73 65 |kRecent |to False|
|00004f60| 0d 75 6e 6c 6f 63 6b 20 | 73 63 72 65 65 6e 0d 65 |.unlock |screen.e|
|00004f70| 6e 64 20 63 48 43 75 6e | 4c 6f 63 6b 0d 0d 6f 6e |nd cHCun|Lock..on|
|00004f80| 20 63 48 43 76 69 73 75 | 61 6c 20 63 6f 6d 6d 61 | cHCvisu|al comma|
|00004f90| 6e 64 2c 20 64 6f 6e 74 | 52 65 70 6c 61 63 65 0d |nd, dont|Replace.|
|00004fa0| 67 6c 6f 62 61 6c 20 67 | 4f 6b 54 6f 43 6f 6c 6f |global g|OkToColo|
|00004fb0| 72 69 7a 65 2c 20 67 48 | 43 6f 70 74 69 6f 6e 73 |rize, gH|Coptions|
|00004fc0| 2c 20 67 48 43 65 66 66 | 65 63 74 73 0d 69 66 20 |, gHCeff|ects.if |
|00004fd0| 63 68 61 72 20 31 32 20 | 6f 66 20 67 48 43 6f 70 |char 12 |of gHCop|
|00004fe0| 74 69 6f 6e 73 20 3d 20 | 31 20 c2 0d 6f 72 20 63 |tions = |1 ..or c|
|00004ff0| 68 61 72 20 31 33 20 6f | 66 20 67 48 43 6f 70 74 |har 13 o|f gHCopt|
|00005000| 69 6f 6e 73 20 3d 20 31 | 20 61 6e 64 20 67 4f 6b |ions = 1| and gOk|
|00005010| 54 6f 43 6f 6c 6f 72 69 | 7a 65 20 69 73 20 65 6d |ToColori|ze is em|
|00005020| 70 74 79 20 74 68 65 6e | 0d 70 75 74 20 65 6d 70 |pty then|.put emp|
|00005030| 74 79 20 69 6e 74 6f 20 | 67 48 43 65 66 66 65 63 |ty into |gHCeffec|
|00005040| 74 73 0d 65 78 69 74 20 | 63 48 43 76 69 73 75 61 |ts.exit |cHCvisua|
|00005050| 6c 0d 65 6e 64 20 69 66 | 0d 69 66 20 64 6f 6e 74 |l.end if|.if dont|
|00005060| 52 65 70 6c 61 63 65 20 | 69 73 20 54 72 75 65 20 |Replace |is True |
|00005070| 61 6e 64 20 67 48 43 65 | 66 66 65 63 74 73 20 69 |and gHCe|ffects i|
|00005080| 73 20 6e 6f 74 20 65 6d | 70 74 79 20 74 68 65 6e |s not em|pty then|
|00005090| 20 65 78 69 74 20 63 48 | 43 76 69 73 75 61 6c 0d | exit cH|Cvisual.|
|000050a0| 70 75 74 20 63 6f 6d 6d | 61 6e 64 20 69 6e 74 6f |put comm|and into|
|000050b0| 20 67 48 43 65 66 66 65 | 63 74 73 0d 65 6e 64 20 | gHCeffe|cts.end |
|000050c0| 63 48 43 76 69 73 75 61 | 6c 0d 0d 6f 6e 20 48 43 |cHCvisua|l..on HC|
|000050d0| 69 6e 69 74 0d 65 6e 64 | 20 48 43 69 6e 69 74 0d |init.end| HCinit.|
|000050e0| 0d 6f 6e 20 48 43 63 6f | 6c 6f 72 69 7a 65 0d 43 |.on HCco|lorize.C|
|000050f0| 6f 6c 6f 72 69 7a 65 48 | 43 20 22 45 72 61 73 65 |olorizeH|C "Erase|
|00005100| 22 0d 63 6f 6c 6f 72 69 | 7a 65 48 43 20 22 6e 65 |".colori|zeHC "ne|
|00005110| 77 22 2c 22 62 61 63 6b | 64 72 6f 70 22 2c 22 30 |w","back|drop","0|
|00005120| 2c 30 22 0d 65 6e 64 20 | 48 43 63 6f 6c 6f 72 69 |,0".end |HCcolori|
|00005130| 7a 65 0d 0d 6f 6e 20 48 | 43 75 6e 43 6f 6c 6f 72 |ze..on H|CunColor|
|00005140| 69 7a 65 0d 67 6c 6f 62 | 61 6c 20 67 48 43 4f 70 |ize.glob|al gHCOp|
|00005150| 74 69 6f 6e 73 0d 69 66 | 20 63 68 61 72 20 31 31 |tions.if| char 11|
|00005160| 20 6f 66 20 67 48 43 6f | 70 74 69 6f 6e 73 20 69 | of gHCo|ptions i|
|00005170| 73 20 6e 6f 74 20 31 20 | 74 68 65 6e 20 73 65 74 |s not 1 |then set|
|00005180| 20 74 68 65 20 63 75 72 | 73 6f 72 20 74 6f 20 77 | the cur|sor to w|
|00005190| 61 74 63 68 0d 69 66 20 | 6e 6f 74 20 74 68 65 20 |atch.if |not the |
|000051a0| 6c 6f 63 6b 53 63 72 65 | 65 6e 20 74 68 65 6e 20 |lockScre|en then |
|000051b0| 6c 6f 63 6b 20 73 63 72 | 65 65 6e 0d 65 6e 64 20 |lock scr|een.end |
|000051c0| 48 43 75 6e 43 6f 6c 6f | 72 69 7a 65 0d 0d 6f 6e |HCunColo|rize..on|
|000051d0| 20 48 43 62 57 68 69 74 | 65 0d 65 6e 64 20 48 43 | HCbWhit|e.end HC|
|000051e0| 62 57 68 69 74 65 0d 0d | 6f 6e 20 48 43 75 6e 42 |bWhite..|on HCunB|
|000051f0| 57 68 69 74 65 0d 48 43 | 75 6e 43 6f 6c 6f 72 69 |White.HC|unColori|
|00005200| 7a 65 0d 65 6e 64 20 48 | 43 75 6e 42 57 68 69 74 |ze.end H|CunBWhit|
|00005210| 65 0d 0d 6f 6e 20 48 43 | 70 72 65 47 72 61 70 68 |e..on HC|preGraph|
|00005220| 69 63 0d 65 6e 64 20 48 | 43 70 72 65 47 72 61 70 |ic.end H|CpreGrap|
|00005230| 68 69 63 0d 0d 6f 6e 20 | 48 43 67 72 61 70 68 69 |hic..on |HCgraphi|
|00005240| 63 0d 65 6e 64 20 48 43 | 67 72 61 70 68 69 63 0d |c.end HC|graphic.|
|00005250| 0d 6f 6e 20 48 43 75 6e | 47 72 61 70 68 69 63 0d |.on HCun|Graphic.|
|00005260| 65 6e 64 20 48 43 55 6e | 47 72 61 70 68 69 63 0d |end HCUn|Graphic.|
|00005270| 0d 66 75 6e 63 74 69 6f | 6e 20 63 48 43 63 6f 72 |.functio|n cHCcor|
|00005280| 72 65 63 74 20 70 6f 73 | 2c 43 6f 72 72 65 63 74 |rect pos|,Correct|
|00005290| 69 6f 6e 0d 69 66 20 43 | 6f 72 72 65 63 74 69 6f |ion.if C|orrectio|
|000052a0| 6e 20 69 73 20 6e 6f 74 | 20 65 6d 70 74 79 20 74 |n is not| empty t|
|000052b0| 68 65 6e 0d 72 65 70 65 | 61 74 20 77 69 74 68 20 |hen.repe|at with |
|000052c0| 69 20 3d 20 31 20 74 6f | 20 74 68 65 20 6e 75 6d |i = 1 to| the num|
|000052d0| 62 65 72 20 6f 66 20 69 | 74 65 6d 73 20 6f 66 20 |ber of i|tems of |
|000052e0| 70 6f 73 0d 61 64 64 20 | 69 74 65 6d 20 69 20 6f |pos.add |item i o|
|000052f0| 66 20 43 6f 72 72 65 63 | 74 69 6f 6e 20 74 6f 20 |f Correc|tion to |
|00005300| 69 74 65 6d 20 69 20 6f | 66 20 70 6f 73 0d 65 6e |item i o|f pos.en|
|00005310| 64 20 72 65 70 65 61 74 | 0d 65 6e 64 20 69 66 0d |d repeat|.end if.|
|00005320| 72 65 74 75 72 6e 20 70 | 6f 73 0d 65 6e 64 20 63 |return p|os.end c|
|00005330| 48 43 63 6f 72 72 65 63 | 74 0d 0d 6f 6e 20 63 48 |HCcorrec|t..on cH|
|00005340| 43 6d 6f 75 73 65 44 6f | 77 6e 20 70 6f 73 2c 55 |CmouseDo|wn pos,U|
|00005350| 70 42 6d 61 70 2c 44 6f | 77 6e 42 6d 61 70 2c 43 |pBmap,Do|wnBmap,C|
|00005360| 6f 72 72 65 63 74 69 6f | 6e 2c 48 69 4c 69 74 65 |orrectio|n,HiLite|
|00005370| 42 57 0d 69 66 20 74 68 | 65 20 61 75 74 6f 48 69 |BW.if th|e autoHi|
|00005380| 6c 69 74 65 20 6f 66 20 | 54 61 72 67 65 74 0d 74 |lite of |Target.t|
|00005390| 68 65 6e 20 65 78 69 74 | 20 63 48 43 6d 6f 75 73 |hen exit| cHCmous|
|000053a0| 65 44 6f 77 6e 0d 67 6c | 6f 62 61 6c 20 67 4f 6b |eDown.gl|obal gOk|
|000053b0| 54 6f 43 6f 6c 6f 72 69 | 7a 65 0d 70 75 74 20 28 |ToColori|ze.put (|
|000053c0| 67 4f 6b 54 6f 43 6f 6c | 6f 72 69 7a 65 20 69 73 |gOkToCol|orize is|
|000053d0| 20 6e 6f 74 20 65 6d 70 | 74 79 29 20 6f 72 20 28 | not emp|ty) or (|
|000053e0| 55 70 42 6d 61 70 20 69 | 73 20 65 6d 70 74 79 29 |UpBmap i|s empty)|
|000053f0| 20 6f 72 20 c2 0d 28 44 | 6f 77 6e 42 6d 61 70 20 | or ..(D|ownBmap |
|00005400| 69 73 20 65 6d 70 74 79 | 29 20 69 6e 74 6f 20 64 |is empty|) into d|
|00005410| 6f 42 57 0d 69 66 20 64 | 6f 42 57 20 61 6e 64 20 |oBW.if d|oBW and |
|00005420| 48 69 4c 69 74 65 42 57 | 20 69 73 20 46 61 6c 73 |HiLiteBW| is Fals|
|00005430| 65 0d 74 68 65 6e 20 65 | 78 69 74 20 63 48 43 6d |e.then e|xit cHCm|
|00005440| 6f 75 73 65 44 6f 77 6e | 0d 69 66 20 6e 6f 74 20 |ouseDown|.if not |
|00005450| 64 6f 42 57 20 74 68 65 | 6e 0d 69 66 20 70 6f 73 |doBW the|n.if pos|
|00005460| 20 69 73 20 65 6d 70 74 | 79 20 74 68 65 6e 20 70 | is empt|y then p|
|00005470| 75 74 20 74 6f 70 4c 65 | 66 74 20 6f 66 20 74 68 |ut topLe|ft of th|
|00005480| 65 20 74 61 72 67 65 74 | 20 69 6e 74 6f 20 70 6f |e target| into po|
|00005490| 73 0d 69 66 20 43 6f 72 | 72 65 63 74 69 6f 6e 20 |s.if Cor|rection |
|000054a0| 69 73 20 6e 6f 74 20 65 | 6d 70 74 79 0d 74 68 65 |is not e|mpty.the|
|000054b0| 6e 20 70 75 74 20 63 48 | 43 63 6f 72 72 65 63 74 |n put cH|Ccorrect|
|000054c0| 28 70 6f 73 2c 43 6f 72 | 72 65 63 74 69 6f 6e 29 |(pos,Cor|rection)|
|000054d0| 20 69 6e 74 6f 20 70 6f | 73 0d 65 6e 64 20 69 66 | into po|s.end if|
|000054e0| 0d 70 75 74 20 46 61 6c | 73 65 20 69 6e 74 6f 20 |.put Fal|se into |
|000054f0| 49 73 49 6e 4d 65 0d 72 | 65 70 65 61 74 20 75 6e |IsInMe.r|epeat un|
|00005500| 74 69 6c 20 74 68 65 20 | 6d 6f 75 73 65 20 69 73 |til the |mouse is|
|00005510| 20 75 70 0d 69 66 20 28 | 74 68 65 20 6d 6f 75 73 | up.if (|the mous|
|00005520| 65 4c 6f 63 20 69 73 20 | 77 69 74 68 69 6e 20 74 |eLoc is |within t|
|00005530| 68 65 20 72 65 63 74 20 | 6f 66 20 74 68 65 20 74 |he rect |of the t|
|00005540| 61 72 67 65 74 29 20 74 | 68 65 6e 0d 69 66 20 49 |arget) t|hen.if I|
|00005550| 73 49 6e 4d 65 20 69 73 | 20 6e 6f 74 20 54 72 75 |sInMe is| not Tru|
|00005560| 65 20 74 68 65 6e 0d 69 | 66 20 6e 6f 74 20 64 6f |e then.i|f not do|
|00005570| 42 57 20 74 68 65 6e 0d | 63 6f 6c 6f 72 69 7a 65 |BW then.|colorize|
|00005580| 48 43 20 22 61 64 64 22 | 2c 44 6f 77 6e 42 6d 61 |HC "add"|,DownBma|
|00005590| 70 2c 70 6f 73 0d 69 66 | 20 74 68 65 20 72 65 73 |p,pos.if| the res|
|000055a0| 75 6c 74 20 69 73 20 6e | 6f 74 20 65 6d 70 74 79 |ult is n|ot empty|
|000055b0| 20 74 68 65 6e 20 63 48 | 43 65 72 72 6f 72 20 74 | then cH|Cerror t|
|000055c0| 68 65 20 72 65 73 75 6c | 74 0d 63 48 43 73 68 6f |he resul|t.cHCsho|
|000055d0| 77 43 6f 6c 6f 72 20 54 | 72 75 65 0d 65 6c 73 65 |wColor T|rue.else|
|000055e0| 20 73 65 74 20 74 68 65 | 20 68 69 6c 69 74 65 20 | set the| hilite |
|000055f0| 6f 66 20 74 68 65 20 74 | 61 72 67 65 74 20 74 6f |of the t|arget to|
|00005600| 20 54 72 75 65 0d 70 75 | 74 20 54 72 75 65 20 69 | True.pu|t True i|
|00005610| 6e 74 6f 20 49 73 49 6e | 4d 65 0d 65 6e 64 20 69 |nto IsIn|Me.end i|
|00005620| 66 0d 65 6c 73 65 0d 69 | 66 20 49 73 49 6e 4d 65 |f.else.i|f IsInMe|
|00005630| 20 69 73 20 6e 6f 74 20 | 46 61 6c 73 65 20 74 68 | is not |False th|
|00005640| 65 6e 0d 69 66 20 6e 6f | 74 20 64 6f 42 57 20 74 |en.if no|t doBW t|
|00005650| 68 65 6e 0d 63 6f 6c 6f | 72 69 7a 65 48 43 20 22 |hen.colo|rizeHC "|
|00005660| 61 64 64 22 2c 55 70 42 | 4d 61 70 2c 70 6f 73 0d |add",UpB|Map,pos.|
|00005670| 69 66 20 74 68 65 20 72 | 65 73 75 6c 74 20 69 73 |if the r|esult is|
|00005680| 20 6e 6f 74 20 65 6d 70 | 74 79 20 74 68 65 6e 0d | not emp|ty then.|
|00005690| 73 65 6e 64 20 22 63 48 | 43 65 72 72 6f 72 22 20 |send "cH|Cerror" |
|000056a0| 26 26 20 71 75 6f 74 65 | 20 26 20 74 68 65 20 72 |&& quote| & the r|
|000056b0| 65 73 75 6c 74 20 26 20 | 71 75 6f 74 65 20 74 6f |esult & |quote to|
|000056c0| 20 63 64 0d 65 6e 64 20 | 69 66 0d 63 48 43 73 68 | cd.end |if.cHCsh|
|000056d0| 6f 77 43 6f 6c 6f 72 20 | 54 72 75 65 0d 65 6c 73 |owColor |True.els|
|000056e0| 65 20 73 65 74 20 74 68 | 65 20 68 69 6c 69 74 65 |e set th|e hilite|
|000056f0| 20 6f 66 20 74 68 65 20 | 74 61 72 67 65 74 20 74 | of the |target t|
|00005700| 6f 20 66 61 6c 73 65 0d | 70 75 74 20 46 61 6c 73 |o false.|put Fals|
|00005710| 65 20 69 6e 74 6f 20 49 | 73 49 6e 4d 65 0d 65 6e |e into I|sInMe.en|
|00005720| 64 20 69 66 0d 65 6e 64 | 20 69 66 0d 65 6e 64 20 |d if.end| if.end |
|00005730| 72 65 70 65 61 74 0d 65 | 6e 64 20 63 48 43 6d 6f |repeat.e|nd cHCmo|
|00005740| 75 73 65 44 6f 77 6e 0d | 0d 66 75 6e 63 74 69 6f |useDown.|.functio|
|00005750| 6e 20 63 48 43 6d 6f 75 | 73 65 55 70 20 70 6f 73 |n cHCmou|seUp pos|
|00005760| 2c 55 70 42 6d 61 70 2c | 43 6f 72 72 65 63 74 69 |,UpBmap,|Correcti|
|00005770| 6f 6e 2c 48 69 6c 69 74 | 65 42 57 0d 69 66 20 6e |on,Hilit|eBW.if n|
|00005780| 6f 74 20 28 74 68 65 20 | 6d 6f 75 73 65 4c 6f 63 |ot (the |mouseLoc|
|00005790| 20 69 73 20 77 69 74 68 | 69 6e 20 74 68 65 20 72 | is with|in the r|
|000057a0| 65 63 74 20 6f 66 20 74 | 68 65 20 74 61 72 67 65 |ect of t|he targe|
|000057b0| 74 29 0d 74 68 65 6e 20 | 72 65 74 75 72 6e 20 46 |t).then |return F|
|000057c0| 61 6c 73 65 0d 65 6c 73 | 65 0d 67 6c 6f 62 61 6c |alse.els|e.global|
|000057d0| 20 67 4f 6b 54 6f 43 6f | 6c 6f 72 69 7a 65 0d 69 | gOkToCo|lorize.i|
|000057e0| 66 20 28 67 4f 6b 54 6f | 43 6f 6c 6f 72 69 7a 65 |f (gOkTo|Colorize|
|000057f0| 20 69 73 20 65 6d 70 74 | 79 29 20 61 6e 64 20 28 | is empt|y) and (|
|00005800| 55 70 42 6d 61 70 20 69 | 73 20 6e 6f 74 20 65 6d |UpBmap i|s not em|
|00005810| 70 74 79 29 20 74 68 65 | 6e 0d 69 66 20 70 6f 73 |pty) the|n.if pos|
|00005820| 20 69 73 20 65 6d 70 74 | 79 20 74 68 65 6e 20 70 | is empt|y then p|
|00005830| 75 74 20 74 6f 70 4c 65 | 66 74 20 6f 66 20 74 68 |ut topLe|ft of th|
|00005840| 65 20 74 61 72 67 65 74 | 20 69 6e 74 6f 20 70 6f |e target| into po|
|00005850| 73 0d 69 66 20 43 6f 72 | 72 65 63 74 69 6f 6e 20 |s.if Cor|rection |
|00005860| 69 73 20 6e 6f 74 20 65 | 6d 70 74 79 0d 74 68 65 |is not e|mpty.the|
|00005870| 6e 20 70 75 74 20 63 48 | 43 63 6f 72 72 65 63 74 |n put cH|Ccorrect|
|00005880| 28 70 6f 73 2c 43 6f 72 | 72 65 63 74 69 6f 6e 29 |(pos,Cor|rection)|
|00005890| 20 69 6e 74 6f 20 70 6f | 73 0d 63 6f 6c 6f 72 69 | into po|s.colori|
|000058a0| 7a 65 48 43 20 22 61 64 | 64 22 2c 55 70 42 4d 61 |zeHC "ad|d",UpBMa|
|000058b0| 70 2c 70 6f 73 0d 69 66 | 20 74 68 65 20 72 65 73 |p,pos.if| the res|
|000058c0| 75 6c 74 20 69 73 20 6e | 6f 74 20 65 6d 70 74 79 |ult is n|ot empty|
|000058d0| 20 74 68 65 6e 0d 73 65 | 6e 64 20 22 63 48 43 65 | then.se|nd "cHCe|
|000058e0| 72 72 6f 72 22 20 26 26 | 20 71 75 6f 74 65 20 26 |rror" &&| quote &|
|000058f0| 20 74 68 65 20 72 65 73 | 75 6c 74 20 26 20 71 75 | the res|ult & qu|
|00005900| 6f 74 65 20 74 6f 20 63 | 64 0d 65 6e 64 20 69 66 |ote to c|d.end if|
|00005910| 0d 63 48 43 73 68 6f 77 | 43 6f 6c 6f 72 20 54 72 |.cHCshow|Color Tr|
|00005920| 75 65 0d 65 6c 73 65 20 | 69 66 20 48 69 6c 69 74 |ue.else |if Hilit|
|00005930| 65 42 57 20 69 73 20 6e | 6f 74 20 66 61 6c 73 65 |eBW is n|ot false|
|00005940| 0d 74 68 65 6e 20 73 65 | 74 20 74 68 65 20 68 69 |.then se|t the hi|
|00005950| 6c 69 74 65 20 6f 66 20 | 74 68 65 20 74 61 72 67 |lite of |the targ|
|00005960| 65 74 20 74 6f 20 46 61 | 6c 73 65 0d 72 65 74 75 |et to Fa|lse.retu|
|00005970| 72 6e 20 54 72 75 65 0d | 65 6e 64 20 69 66 0d 65 |rn True.|end if.e|
|00005980| 6e 64 20 63 48 43 6d 6f | 75 73 65 55 70 0d 0d 66 |nd cHCmo|useUp..f|
|00005990| 75 6e 63 74 69 6f 6e 20 | 63 48 43 62 75 74 74 46 |unction |cHCbuttF|
|000059a0| 6c 61 67 73 20 66 6c 61 | 67 73 0d 67 65 74 20 6f |lags fla|gs.get o|
|000059b0| 66 66 73 65 74 28 22 49 | 3d 22 2c 66 6c 61 67 73 |ffset("I|=",flags|
|000059c0| 29 0d 69 66 20 69 74 20 | 3d 20 30 20 74 68 65 6e |).if it |= 0 then|
|000059d0| 20 70 75 74 20 22 20 22 | 20 69 6e 74 6f 20 72 65 | put " "| into re|
|000059e0| 73 75 6c 74 0d 65 6c 73 | 65 20 70 75 74 20 63 68 |sult.els|e put ch|
|000059f0| 61 72 20 28 69 74 2b 32 | 29 20 6f 66 20 66 6c 61 |ar (it+2|) of fla|
|00005a00| 67 73 20 69 6e 74 6f 20 | 72 65 73 75 6c 74 0d 67 |gs into |result.g|
|00005a10| 65 74 20 6f 66 66 73 65 | 74 28 22 4e 3d 22 2c 66 |et offse|t("N=",f|
|00005a20| 6c 61 67 73 29 0d 69 66 | 20 69 74 20 3d 20 30 20 |lags).if| it = 0 |
|00005a30| 74 68 65 6e 20 70 75 74 | 20 22 20 22 20 61 66 74 |then put| " " aft|
|00005a40| 65 72 20 72 65 73 75 6c | 74 0d 65 6c 73 65 20 70 |er resul|t.else p|
|00005a50| 75 74 20 63 68 61 72 20 | 28 69 74 2b 32 29 20 6f |ut char |(it+2) o|
|00005a60| 66 20 66 6c 61 67 73 20 | 61 66 74 65 72 20 72 65 |f flags |after re|
|00005a70| 73 75 6c 74 0d 67 65 74 | 20 6f 66 66 73 65 74 28 |sult.get| offset(|
|00005a80| 22 4f 3d 22 2c 66 6c 61 | 67 73 29 0d 69 66 20 69 |"O=",fla|gs).if i|
|00005a90| 74 20 3d 20 30 20 74 68 | 65 6e 20 70 75 74 20 22 |t = 0 th|en put "|
|00005aa0| 20 22 20 61 66 74 65 72 | 20 72 65 73 75 6c 74 0d | " after| result.|
|00005ab0| 65 6c 73 65 20 70 75 74 | 20 63 68 61 72 20 28 69 |else put| char (i|
|00005ac0| 74 2b 32 29 20 6f 66 20 | 66 6c 61 67 73 20 61 66 |t+2) of |flags af|
|00005ad0| 74 65 72 20 72 65 73 75 | 6c 74 0d 0d 72 65 74 75 |ter resu|lt..retu|
|00005ae0| 72 6e 20 72 65 73 75 6c | 74 0d 65 6e 64 20 63 48 |rn resul|t.end cH|
|00005af0| 43 62 75 74 74 46 6c 61 | 67 73 0d 0d 6f 6e 20 63 |CbuttFla|gs..on c|
|00005b00| 48 43 69 6e 69 74 42 75 | 74 74 6f 6e 20 73 68 6f |HCinitBu|tton sho|
|00005b10| 77 49 74 2c 20 66 6c 61 | 67 73 2c 20 49 63 6e 2c |wIt, fla|gs, Icn,|
|00005b20| 20 70 6f 73 2c 20 55 70 | 42 4d 61 70 2c 20 43 6f | pos, Up|BMap, Co|
|00005b30| 72 72 65 63 74 69 6f 6e | 2c 20 6f 75 74 6c 69 6e |rrection|, outlin|
|00005b40| 65 53 74 79 6c 65 0d 69 | 66 20 73 68 6f 77 49 74 |eStyle.i|f showIt|
|00005b50| 20 69 73 20 46 61 6c 73 | 65 20 74 68 65 6e 0d 68 | is Fals|e then.h|
|00005b60| 69 64 65 20 74 68 65 20 | 74 61 72 67 65 74 0d 65 |ide the |target.e|
|00005b70| 6c 73 65 20 69 66 20 73 | 68 6f 77 49 74 20 69 73 |lse if s|howIt is|
|00005b80| 20 22 46 6f 72 63 65 22 | 20 74 68 65 6e 0d 63 48 | "Force"| then.cH|
|00005b90| 43 66 6f 72 63 65 42 75 | 74 74 6f 6e 20 66 6c 61 |CforceBu|tton fla|
|00005ba0| 67 73 2c 49 63 6e 2c 70 | 6f 73 2c 55 70 42 4d 61 |gs,Icn,p|os,UpBMa|
|00005bb0| 70 2c 43 6f 72 72 65 63 | 74 69 6f 6e 2c 6f 75 74 |p,Correc|tion,out|
|00005bc0| 6c 69 6e 65 53 74 79 6c | 65 0d 65 6c 73 65 0d 67 |lineStyl|e.else.g|
|00005bd0| 6c 6f 62 61 6c 20 67 4f | 6b 54 6f 43 6f 6c 6f 72 |lobal gO|kToColor|
|00005be0| 69 7a 65 0d 70 75 74 20 | 67 4f 6b 54 6f 43 6f 6c |ize.put |gOkToCol|
|00005bf0| 6f 72 69 7a 65 20 69 73 | 20 6e 6f 74 20 65 6d 70 |orize is| not emp|
|00005c00| 74 79 20 6f 72 20 55 70 | 42 4d 61 70 20 69 73 20 |ty or Up|BMap is |
|00005c10| 65 6d 70 74 79 20 69 6e | 74 6f 20 42 57 0d 69 66 |empty in|to BW.if|
|00005c20| 20 66 6c 61 67 73 20 63 | 6f 6e 74 61 69 6e 73 20 | flags c|ontains |
|00005c30| 22 3d 22 20 74 68 65 6e | 20 70 75 74 20 63 48 43 |"=" then| put cHC|
|00005c40| 62 75 74 74 46 6c 61 67 | 73 28 66 6c 61 67 73 29 |buttFlag|s(flags)|
|00005c50| 20 69 6e 74 6f 20 66 6c | 61 67 73 0d 69 66 20 42 | into fl|ags.if B|
|00005c60| 57 20 74 68 65 6e 0d 69 | 66 20 63 68 61 72 20 33 |W then.i|f char 3|
|00005c70| 20 6f 66 20 66 6c 61 67 | 73 20 69 73 20 22 42 22 | of flag|s is "B"|
|00005c80| 20 74 68 65 6e 0d 69 66 | 20 6f 75 74 6c 69 6e 65 | then.if| outline|
|00005c90| 53 74 79 6c 65 20 69 73 | 20 65 6d 70 74 79 20 74 |Style is| empty t|
|00005ca0| 68 65 6e 0d 73 65 74 20 | 74 68 65 20 73 74 79 6c |hen.set |the styl|
|00005cb0| 65 20 6f 66 20 74 68 65 | 20 74 61 72 67 65 74 20 |e of the| target |
|00005cc0| 74 6f 20 72 65 63 74 61 | 6e 67 6c 65 0d 65 6c 73 |to recta|ngle.els|
|00005cd0| 65 20 73 65 74 20 74 68 | 65 20 73 74 79 6c 65 20 |e set th|e style |
|00005ce0| 6f 66 20 74 68 65 20 74 | 61 72 67 65 74 20 74 6f |of the t|arget to|
|00005cf0| 20 6f 75 74 6c 69 6e 65 | 53 74 79 6c 65 0d 65 6e | outline|Style.en|
|00005d00| 64 20 69 66 0d 69 66 20 | 63 68 61 72 20 31 20 6f |d if.if |char 1 o|
|00005d10| 66 20 66 6c 61 67 73 20 | 69 73 20 22 42 22 0d 74 |f flags |is "B".t|
|00005d20| 68 65 6e 20 73 65 74 20 | 74 68 65 20 69 63 6f 6e |hen set |the icon|
|00005d30| 20 6f 66 20 74 68 65 20 | 74 61 72 67 65 74 20 74 | of the |target t|
|00005d40| 6f 20 49 63 6e 0d 69 66 | 20 63 68 61 72 20 32 20 |o Icn.if| char 2 |
|00005d50| 6f 66 20 66 6c 61 67 73 | 20 69 73 20 22 42 22 0d |of flags| is "B".|
|00005d60| 74 68 65 6e 20 73 65 74 | 20 74 68 65 20 73 68 6f |then set| the sho|
|00005d70| 77 4e 61 6d 65 20 6f 66 | 20 74 68 65 20 74 61 72 |wName of| the tar|
|00005d80| 67 65 74 20 74 6f 20 54 | 72 75 65 0d 73 65 74 20 |get to T|rue.set |
|00005d90| 74 68 65 20 61 75 74 6f | 48 69 6c 69 74 65 20 6f |the auto|Hilite o|
|00005da0| 66 20 74 68 65 20 74 61 | 72 67 65 74 20 74 6f 20 |f the ta|rget to |
|00005db0| 54 72 75 65 0d 65 6c 73 | 65 0d 69 66 20 63 68 61 |True.els|e.if cha|
|00005dc0| 72 20 33 20 6f 66 20 66 | 6c 61 67 73 20 69 73 20 |r 3 of f|lags is |
|00005dd0| 22 42 22 0d 74 68 65 6e | 20 73 65 74 20 74 68 65 |"B".then| set the|
|00005de0| 20 73 74 79 6c 65 20 6f | 66 20 74 68 65 20 74 61 | style o|f the ta|
|00005df0| 72 67 65 74 20 74 6f 20 | 6f 70 61 71 75 65 0d 69 |rget to |opaque.i|
|00005e00| 66 20 63 68 61 72 20 31 | 20 6f 66 20 66 6c 61 67 |f char 1| of flag|
|00005e10| 73 20 69 73 20 22 42 22 | 0d 74 68 65 6e 20 73 65 |s is "B"|.then se|
|00005e20| 74 20 74 68 65 20 69 63 | 6f 6e 20 6f 66 20 74 68 |t the ic|on of th|
|00005e30| 65 20 74 61 72 67 65 74 | 20 74 6f 20 65 6d 70 74 |e target| to empt|
|00005e40| 79 0d 69 66 20 63 68 61 | 72 20 32 20 6f 66 20 66 |y.if cha|r 2 of f|
|00005e50| 6c 61 67 73 20 69 73 20 | 22 42 22 0d 74 68 65 6e |lags is |"B".then|
|00005e60| 20 73 65 74 20 74 68 65 | 20 73 68 6f 77 4e 61 6d | set the| showNam|
|00005e70| 65 20 6f 66 20 74 68 65 | 20 74 61 72 67 65 74 20 |e of the| target |
|00005e80| 74 6f 20 46 61 6c 73 65 | 0d 73 65 74 20 74 68 65 |to False|.set the|
|00005e90| 20 61 75 74 6f 48 69 6c | 69 74 65 20 6f 66 20 74 | autoHil|ite of t|
|00005ea0| 68 65 20 74 61 72 67 65 | 74 20 74 6f 20 46 61 6c |he targe|t to Fal|
|00005eb0| 73 65 0d 69 66 20 70 6f | 73 20 69 73 20 65 6d 70 |se.if po|s is emp|
|00005ec0| 74 79 20 74 68 65 6e 20 | 70 75 74 20 74 68 65 20 |ty then |put the |
|00005ed0| 74 6f 70 4c 65 66 74 20 | 6f 66 20 74 68 65 20 74 |topLeft |of the t|
|00005ee0| 61 72 67 65 74 20 69 6e | 74 6f 20 70 6f 73 0d 69 |arget in|to pos.i|
|00005ef0| 66 20 43 6f 72 72 65 63 | 74 69 6f 6e 20 69 73 20 |f Correc|tion is |
|00005f00| 6e 6f 74 20 65 6d 70 74 | 79 0d 74 68 65 6e 20 70 |not empt|y.then p|
|00005f10| 75 74 20 63 48 43 63 6f | 72 72 65 63 74 28 70 6f |ut cHCco|rrect(po|
|00005f20| 73 2c 43 6f 72 72 65 63 | 74 69 6f 6e 29 20 69 6e |s,Correc|tion) in|
|00005f30| 74 6f 20 70 6f 73 0d 63 | 6f 6c 6f 72 69 7a 65 48 |to pos.c|olorizeH|
|00005f40| 43 20 22 61 64 64 22 2c | 55 70 42 4d 61 70 2c 70 |C "add",|UpBMap,p|
|00005f50| 6f 73 0d 69 66 20 74 68 | 65 20 72 65 73 75 6c 74 |os.if th|e result|
|00005f60| 20 69 73 20 6e 6f 74 20 | 65 6d 70 74 79 0d 74 68 | is not |empty.th|
|00005f70| 65 6e 20 73 65 6e 64 20 | 22 63 48 43 65 72 72 6f |en send |"cHCerro|
|00005f80| 72 22 20 26 26 20 71 75 | 6f 74 65 20 26 20 74 68 |r" && qu|ote & th|
|00005f90| 65 20 72 65 73 75 6c 74 | 20 26 20 71 75 6f 74 65 |e result| & quote|
|00005fa0| 20 74 6f 20 63 64 0d 65 | 6e 64 20 69 66 0d 73 68 | to cd.e|nd if.sh|
|00005fb0| 6f 77 20 74 68 65 20 74 | 61 72 67 65 74 0d 65 6e |ow the t|arget.en|
|00005fc0| 64 20 69 66 0d 65 6e 64 | 20 63 48 43 69 6e 69 74 |d if.end| cHCinit|
|00005fd0| 42 75 74 74 6f 6e 0d 0d | 6f 6e 20 63 48 43 66 6f |Button..|on cHCfo|
|00005fe0| 72 63 65 42 75 74 74 6f | 6e 20 66 6c 61 67 73 2c |rceButto|n flags,|
|00005ff0| 20 49 63 6e 2c 20 70 6f | 73 2c 20 55 70 42 4d 61 | Icn, po|s, UpBMa|
|00006000| 70 2c 20 43 6f 72 72 65 | 63 74 69 6f 6e 2c 20 6f |p, Corre|ction, o|
|00006010| 75 74 6c 69 6e 65 53 74 | 79 6c 65 0d 67 6c 6f 62 |utlineSt|yle.glob|
|00006020| 61 6c 20 67 4f 6b 54 6f | 43 6f 6c 6f 72 69 7a 65 |al gOkTo|Colorize|
|00006030| 0d 70 75 74 20 67 4f 6b | 54 6f 43 6f 6c 6f 72 69 |.put gOk|ToColori|
|00006040| 7a 65 20 69 73 20 6e 6f | 74 20 65 6d 70 74 79 20 |ze is no|t empty |
|00006050| 6f 72 20 55 70 42 4d 61 | 70 20 69 73 20 65 6d 70 |or UpBMa|p is emp|
|00006060| 74 79 20 69 6e 74 6f 20 | 42 57 0d 69 66 20 66 6c |ty into |BW.if fl|
|00006070| 61 67 73 20 63 6f 6e 74 | 61 69 6e 73 20 22 3d 22 |ags cont|ains "="|
|00006080| 20 74 68 65 6e 20 70 75 | 74 20 63 48 43 62 75 74 | then pu|t cHCbut|
|00006090| 74 46 6c 61 67 73 28 66 | 6c 61 67 73 29 20 69 6e |tFlags(f|lags) in|
|000060a0| 74 6f 20 66 6c 61 67 73 | 0d 69 66 20 42 57 20 74 |to flags|.if BW t|
|000060b0| 68 65 6e 0d 67 65 74 20 | 63 68 61 72 20 33 20 6f |hen.get |char 3 o|
|000060c0| 66 20 66 6c 61 67 73 0d | 69 66 20 69 74 20 69 73 |f flags.|if it is|
|000060d0| 20 22 42 22 20 6f 72 20 | 69 74 20 69 73 20 22 41 | "B" or |it is "A|
|000060e0| 22 20 74 68 65 6e 0d 69 | 66 20 6f 75 74 6c 69 6e |" then.i|f outlin|
|000060f0| 65 53 74 79 6c 65 20 69 | 73 20 65 6d 70 74 79 20 |eStyle i|s empty |
|00006100| 74 68 65 6e 0d 73 65 74 | 20 74 68 65 20 73 74 79 |then.set| the sty|
|00006110| 6c 65 20 6f 66 20 74 68 | 65 20 74 61 72 67 65 74 |le of th|e target|
|00006120| 20 74 6f 20 72 65 63 74 | 61 6e 67 6c 65 0d 65 6c | to rect|angle.el|
|00006130| 73 65 20 73 65 74 20 74 | 68 65 20 73 74 79 6c 65 |se set t|he style|
|00006140| 20 6f 66 20 74 68 65 20 | 74 61 72 67 65 74 20 74 | of the |target t|
|00006150| 6f 20 6f 75 74 6c 69 6e | 65 53 74 79 6c 65 0d 65 |o outlin|eStyle.e|
|00006160| 6c 73 65 20 73 65 74 20 | 74 68 65 20 73 74 79 6c |lse set |the styl|
|00006170| 65 20 6f 66 20 74 68 65 | 20 74 61 72 67 65 74 20 |e of the| target |
|00006180| 74 6f 20 6f 70 61 71 75 | 65 0d 67 65 74 20 63 68 |to opaqu|e.get ch|
|00006190| 61 72 20 31 20 6f 66 20 | 66 6c 61 67 73 0d 69 66 |ar 1 of |flags.if|
|000061a0| 20 69 74 20 69 73 20 22 | 42 22 20 6f 72 20 69 74 | it is "|B" or it|
|000061b0| 20 69 73 20 22 41 22 20 | 74 68 65 6e 0d 73 65 74 | is "A" |then.set|
|000061c0| 20 74 68 65 20 69 63 6f | 6e 20 6f 66 20 74 68 65 | the ico|n of the|
|000061d0| 20 74 61 72 67 65 74 20 | 74 6f 20 49 63 6e 0d 65 | target |to Icn.e|
|000061e0| 6c 73 65 20 73 65 74 20 | 74 68 65 20 69 63 6f 6e |lse set |the icon|
|000061f0| 20 6f 66 20 74 68 65 20 | 74 61 72 67 65 74 20 74 | of the |target t|
|00006200| 6f 20 65 6d 70 74 79 0d | 67 65 74 20 63 68 61 72 |o empty.|get char|
|00006210| 20 32 20 6f 66 20 66 6c | 61 67 73 0d 73 65 74 20 | 2 of fl|ags.set |
|00006220| 74 68 65 20 73 68 6f 77 | 4e 61 6d 65 20 6f 66 20 |the show|Name of |
|00006230| 74 68 65 20 74 61 72 67 | 65 74 20 74 6f 20 69 74 |the targ|et to it|
|00006240| 20 69 73 20 22 42 22 20 | 6f 72 20 69 74 20 69 73 | is "B" |or it is|
|00006250| 20 22 41 22 0d 73 65 74 | 20 74 68 65 20 61 75 74 | "A".set| the aut|
|00006260| 6f 48 69 6c 69 74 65 20 | 6f 66 20 74 68 65 20 74 |oHilite |of the t|
|00006270| 61 72 67 65 74 20 74 6f | 20 54 72 75 65 0d 65 6c |arget to| True.el|
|00006280| 73 65 0d 69 66 20 63 68 | 61 72 20 33 20 6f 66 20 |se.if ch|ar 3 of |
|00006290| 66 6c 61 67 73 20 69 73 | 20 22 41 22 20 74 68 65 |flags is| "A" the|
|000062a0| 6e 0d 69 66 20 6f 75 74 | 6c 69 6e 65 53 74 79 6c |n.if out|lineStyl|
|000062b0| 65 20 69 73 20 65 6d 70 | 74 79 20 74 68 65 6e 0d |e is emp|ty then.|
|000062c0| 73 65 74 20 74 68 65 20 | 73 74 79 6c 65 20 6f 66 |set the |style of|
|000062d0| 20 74 68 65 20 74 61 72 | 67 65 74 20 74 6f 20 72 | the tar|get to r|
|000062e0| 65 63 74 61 6e 67 6c 65 | 0d 65 6c 73 65 20 73 65 |ectangle|.else se|
|000062f0| 74 20 74 68 65 20 73 74 | 79 6c 65 20 6f 66 20 74 |t the st|yle of t|
|00006300| 68 65 20 74 61 72 67 65 | 74 20 74 6f 20 6f 75 74 |he targe|t to out|
|00006310| 6c 69 6e 65 53 74 79 6c | 65 0d 65 6c 73 65 20 73 |lineStyl|e.else s|
|00006320| 65 74 20 74 68 65 20 73 | 74 79 6c 65 20 6f 66 20 |et the s|tyle of |
|00006330| 74 68 65 20 74 61 72 67 | 65 74 20 74 6f 20 6f 70 |the targ|et to op|
|00006340| 61 71 75 65 0d 69 66 20 | 63 68 61 72 20 31 20 6f |aque.if |char 1 o|
|00006350| 66 20 66 6c 61 67 73 20 | 69 73 20 22 41 22 20 74 |f flags |is "A" t|
|00006360| 68 65 6e 0d 73 65 74 20 | 74 68 65 20 69 63 6f 6e |hen.set |the icon|
|00006370| 20 6f 66 20 74 68 65 20 | 74 61 72 67 65 74 20 74 | of the |target t|
|00006380| 6f 20 49 63 6e 0d 65 6c | 73 65 20 73 65 74 20 74 |o Icn.el|se set t|
|00006390| 68 65 20 69 63 6f 6e 20 | 6f 66 20 74 68 65 20 74 |he icon |of the t|
|000063a0| 61 72 67 65 74 20 74 6f | 20 65 6d 70 74 79 0d 73 |arget to| empty.s|
|000063b0| 65 74 20 74 68 65 20 73 | 68 6f 77 4e 61 6d 65 20 |et the s|howName |
|000063c0| 6f 66 20 74 68 65 20 74 | 61 72 67 65 74 20 74 6f |of the t|arget to|
|000063d0| 20 63 68 61 72 20 32 20 | 6f 66 20 66 6c 61 67 73 | char 2 |of flags|
|000063e0| 20 69 73 20 22 41 22 0d | 73 65 74 20 74 68 65 20 | is "A".|set the |
|000063f0| 61 75 74 6f 48 69 6c 69 | 74 65 20 6f 66 20 74 68 |autoHili|te of th|
+--------+-------------------------+-------------------------+--------+--------+
Only 25.0 KB of data is shown above.